summaryrefslogtreecommitdiffstats
path: root/Auth
diff options
context:
space:
mode:
Diffstat (limited to 'Auth')
-rw-r--r--Auth/OpenID/Server.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Auth/OpenID/Server.php b/Auth/OpenID/Server.php
index 9c72a0b..b0ef2bc 100644
--- a/Auth/OpenID/Server.php
+++ b/Auth/OpenID/Server.php
@@ -661,7 +661,8 @@ class Auth_OpenID_AssociateRequest extends Auth_OpenID_Request {
$response->fields->updateArgs(Auth_OpenID_OPENID_NS,
$this->session->answer($assoc->secret));
- if ($this->session->session_type != 'no-encryption') {
+ if (! ($this->session->session_type == 'no-encryption'
+ && $this->namespace == Auth_OpenID_OPENID1_NS)) {
$response->fields->setArg(Auth_OpenID_OPENID_NS,
'session_type',
$this->session->session_type);