mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-30 16:49:58 +09:00
association expired handling
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7047 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
eb62b0e1e8
commit
85b29174f5
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue