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/PostgreSQLStore.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/PostgreSQLStore.php')
-rw-r--r-- | Auth/OpenID/PostgreSQLStore.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Auth/OpenID/PostgreSQLStore.php b/Auth/OpenID/PostgreSQLStore.php index cf0a5ef..ffbbc69 100644 --- a/Auth/OpenID/PostgreSQLStore.php +++ b/Auth/OpenID/PostgreSQLStore.php @@ -54,6 +54,9 @@ class Auth_OpenID_PostgreSQLStore extends Auth_OpenID_SQLStore { $this->sql['remove_assoc'] = "DELETE FROM %s WHERE server_url = ? AND handle = ?"; + $this->sql['get_expired'] = + "SELECT server_url FROM %s WHERE issued + lifetime < ?"; + $this->sql['add_nonce'] = "INSERT INTO %s (server_url, timestamp, salt) VALUES ". "(?, ?, ?)" |