diff options
author | Josh Hoyt <josh@janrain.com> | 2006-02-09 16:44:21 +0000 |
---|---|---|
committer | Josh Hoyt <josh@janrain.com> | 2006-02-09 16:44:21 +0000 |
commit | c17a9cd2aac8e8796a432e8dc664ef4606d77695 (patch) | |
tree | 7abfe7052a382da9b60e0728dd7a6ddfd904def6 /examples | |
parent | 300b1677b18977e6b5966878ddbbdaf3d383b079 (diff) | |
download | php-openid-c17a9cd2aac8e8796a432e8dc664ef4606d77695.zip php-openid-c17a9cd2aac8e8796a432e8dc664ef4606d77695.tar.gz php-openid-c17a9cd2aac8e8796a432e8dc664ef4606d77695.tar.bz2 |
[project @ Correct logic for when to use remembered trust decision]
Diffstat (limited to 'examples')
-rw-r--r-- | examples/server/lib/common.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/server/lib/common.php b/examples/server/lib/common.php index 68ab0d9..338bad2 100644 --- a/examples/server/lib/common.php +++ b/examples/server/lib/common.php @@ -63,7 +63,9 @@ function doAuth($info, $trusted=null, $fail_cancels=false) return login_render(array(), $req_url, $req_url); } + $sites = getSessionSites(); $trust_root = $info->getTrustRoot(); + $fail_cancels = $fail_cancels || isset($sites[$trust_root]); $trusted = isset($trusted) ? $trusted : isTrusted($req_url, $trust_root); if ($trusted) { setRequestInfo(); |