association expired handling

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7047 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2009-12-16 02:29:52 +00:00
parent eb62b0e1e8
commit 85b29174f5

View file

@ -111,7 +111,7 @@ class Auth_OpenID_XEStore extends Auth_OpenID_OpenIDStore {
return $r;
}
function _get_assoc($server_url, $handle)
function _get_assoc($server_url, $handle, $getOrig = false)
{
$args->server_url = $server_url;
$args->handle = $handle;
@ -121,6 +121,7 @@ class Auth_OpenID_XEStore extends Auth_OpenID_OpenIDStore {
if(count($output->data) == 1) {
$assoc = array_shift($output->data);
$assoc->secret = $this->hex2bin($assoc->secret);
if($getOrig) return $assoc;
return $this->_check_expire($assoc);
}
@ -154,7 +155,7 @@ class Auth_OpenID_XEStore extends Auth_OpenID_OpenIDStore {
function removeAssociation($server_url, $handle)
{
if ($this->_get_assoc($server_url, $handle) == null) {
if ($this->_get_assoc($server_url, $handle, true) == null) {
return false;
}