From 9ce5bae1ca7a47d863cf15e6f2ba5215851f209b Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 17 Dec 2011 16:02:20 -0500 Subject: associations should expire now --- classes/OpenID_ElggStore.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/OpenID_ElggStore.php b/classes/OpenID_ElggStore.php index de8aa226a..5f6c63e42 100644 --- a/classes/OpenID_ElggStore.php +++ b/classes/OpenID_ElggStore.php @@ -26,6 +26,7 @@ class OpenID_ElggStore extends Auth_OpenID_OpenIDStore { $object->secret = base64_encode($association->secret); $object->issued = $association->issued; $object->lifetime = $association->lifetime; + $object->expires = $object->issued + $object->lifetime; $object->assoc_type = $association->assoc_type; $object->save(); @@ -132,7 +133,7 @@ class OpenID_ElggStore extends Auth_OpenID_OpenIDStore { 'type' => 'object', 'subtype' => 'openid_client::association', 'metadata_name_value_pairs' => array( - array('name' => 'lifetime', 'value' => time(), 'operand' => '<') + array('name' => 'expires', 'value' => time(), 'operand' => '<') ), 'limit' => 0, ); -- cgit v1.2.3