diff options
Diffstat (limited to 'Auth')
-rw-r--r-- | Auth/OpenID/Consumer.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Auth/OpenID/Consumer.php b/Auth/OpenID/Consumer.php index 8afbb06..33f3ab0 100644 --- a/Auth/OpenID/Consumer.php +++ b/Auth/OpenID/Consumer.php @@ -375,7 +375,11 @@ class Auth_OpenID_Consumer { $auth_req = $this->consumer->begin($endpoint); $this->session->set($this->_token_key, $loader->toSession($auth_req->endpoint)); - $auth_req->anonymous = $anonymous; + if (!$auth_req->setAnonymous($anonymous)) { + return new Auth_OpenID_FailureResponse(null, + "OpenID 1 requests MUST include the identifier " . + "in the request."); + } return $auth_req; } |