aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-12-17 16:02:20 -0500
committercash <cash.costello@gmail.com>2011-12-17 16:02:20 -0500
commit9ce5bae1ca7a47d863cf15e6f2ba5215851f209b (patch)
treedf76c6625908c2f264a5f0ed6adfdd33c7127e33
parent71ddd4172040b5603a4288ec07c78d7e70f997b7 (diff)
downloadelgg-9ce5bae1ca7a47d863cf15e6f2ba5215851f209b.tar.gz
elgg-9ce5bae1ca7a47d863cf15e6f2ba5215851f209b.tar.bz2
associations should expire now
-rw-r--r--classes/OpenID_ElggStore.php3
1 files changed, 2 insertions, 1 deletions
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,
);