diff options
author | Josh Hoyt <josh@janrain.com> | 2006-02-07 07:53:44 +0000 |
---|---|---|
committer | Josh Hoyt <josh@janrain.com> | 2006-02-07 07:53:44 +0000 |
commit | 10c620549a29cc7ce6346589b743175e4dfd5153 (patch) | |
tree | b5f62a377e4fe80419d5f145895a2d2013cc0317 | |
parent | 5ee2495e726681ac3390a4b3c6e08a1c30d374da (diff) | |
download | php-openid-10c620549a29cc7ce6346589b743175e4dfd5153.zip php-openid-10c620549a29cc7ce6346589b743175e4dfd5153.tar.gz php-openid-10c620549a29cc7ce6346589b743175e4dfd5153.tar.bz2 |
[project @ Allow the user to specify that he always wants DO_AUTH for checkid_*]
-rw-r--r-- | Auth/OpenID/Server.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Auth/OpenID/Server.php b/Auth/OpenID/Server.php index bc12bee..dcf7b59 100644 --- a/Auth/OpenID/Server.php +++ b/Auth/OpenID/Server.php @@ -149,7 +149,7 @@ class Auth_OpenID_Server { * status. See the status codes defined in this file for * information about each response. */ - function getOpenIDResponse($is_authorized, $method=null, $args=null) + function getOpenIDResponse($is_authorized=false, $method=null, $args=null) { if (!isset($method)) { $method = $_SERVER['REQUEST_METHOD']; @@ -614,7 +614,7 @@ class Auth_OpenID_AuthorizationInfo { // If there is no return_to or trust_root or there is no // identity_url, then it's impossible to continue. - if (isset($identity_url) && isset($trust_root)) { + if (isset($identity_url) && isset($trust_root) && $is_authorized) { $authorized = $is_authorized($identity_url, $trust_root); } else { $authorized = false; |