diff options
author | tailor <cygnus@janrain.com> | 2007-03-02 22:56:05 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2007-03-02 22:56:05 +0000 |
commit | 9a50f5d16036586895b50ec56bc030e0e6ae1fbc (patch) | |
tree | 3ca0fd07f2bfb05d6d4561f39535abc1c413fc05 /Auth/OpenID/MySQLStore.php | |
parent | 4a279473ce570b1e639e4c0fc9d64528ec9a9291 (diff) | |
download | php-openid-9a50f5d16036586895b50ec56bc030e0e6ae1fbc.zip php-openid-9a50f5d16036586895b50ec56bc030e0e6ae1fbc.tar.gz php-openid-9a50f5d16036586895b50ec56bc030e0e6ae1fbc.tar.bz2 |
[project @ Add getExpired to stores]
Diffstat (limited to 'Auth/OpenID/MySQLStore.php')
-rw-r--r-- | Auth/OpenID/MySQLStore.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Auth/OpenID/MySQLStore.php b/Auth/OpenID/MySQLStore.php index 14a695c..4b2d29d 100644 --- a/Auth/OpenID/MySQLStore.php +++ b/Auth/OpenID/MySQLStore.php @@ -57,6 +57,9 @@ class Auth_OpenID_MySQLStore extends Auth_OpenID_SQLStore { $this->sql['add_nonce'] = "INSERT INTO %s (server_url, timestamp, salt) VALUES (?, ?, ?)"; + + $this->sql['get_expired'] = + "SELECT server_url FROM %s WHERE issued + lifetime < ?"; } /** |