diff options
author | tailor <cygnus@janrain.com> | 2006-02-10 22:04:18 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2006-02-10 22:04:18 +0000 |
commit | d678c4a486da8fa760b9fc251b405563023e378b (patch) | |
tree | fa9ed72933f6d09e5e69d75f89ccfb050ebd3a23 | |
parent | d164eabfaabfee49aedb8e11c43f83fad64a7c35 (diff) | |
download | php-openid-d678c4a486da8fa760b9fc251b405563023e378b.zip php-openid-d678c4a486da8fa760b9fc251b405563023e378b.tar.gz php-openid-d678c4a486da8fa760b9fc251b405563023e378b.tar.bz2 |
[project @ Fixed TOKEN_LIFETIME reference bug in Consumer.]
-rw-r--r-- | Auth/OpenID/Consumer/Consumer.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Auth/OpenID/Consumer/Consumer.php b/Auth/OpenID/Consumer/Consumer.php index 9fa428f..b5719f9 100644 --- a/Auth/OpenID/Consumer/Consumer.php +++ b/Auth/OpenID/Consumer/Consumer.php @@ -731,8 +731,6 @@ class Auth_OpenID_Consumer { */ function _splitToken($token) { - global $_Auth_OpenID_TOKEN_LIFETIME; - $token = base64_decode($token); if (strlen($token) < 20) { return null; @@ -755,7 +753,7 @@ class Auth_OpenID_Consumer { return null; } - if ($ts + $_Auth_OpenID_TOKEN_LIFETIME < time()) { + if ($ts + $this->token_lifetime < time()) { return null; } |