diff options
author | tailor <cygnus@janrain.com> | 2006-08-25 22:36:31 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2006-08-25 22:36:31 +0000 |
commit | c5e1f65fbeaaac13e1b25a166df7b23a2061adb0 (patch) | |
tree | 8e06a1591a46274d798c6a12f5aef0a257ff39c7 /Auth/OpenID/SQLiteStore.php | |
parent | 6459176ec9a2c94996fbe14a7428643c7b52e163 (diff) | |
download | php-openid-c5e1f65fbeaaac13e1b25a166df7b23a2061adb0.zip php-openid-c5e1f65fbeaaac13e1b25a166df7b23a2061adb0.tar.gz php-openid-c5e1f65fbeaaac13e1b25a166df7b23a2061adb0.tar.bz2 |
[project @ Server-generated and one-way nonces patch from python openid]
Diffstat (limited to 'Auth/OpenID/SQLiteStore.php')
-rw-r--r-- | Auth/OpenID/SQLiteStore.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Auth/OpenID/SQLiteStore.php b/Auth/OpenID/SQLiteStore.php index 6351df3..168f3fa 100644 --- a/Auth/OpenID/SQLiteStore.php +++ b/Auth/OpenID/SQLiteStore.php @@ -20,8 +20,8 @@ class Auth_OpenID_SQLiteStore extends Auth_OpenID_SQLStore { function setSQL() { $this->sql['nonce_table'] = - "CREATE TABLE %s (nonce CHAR(8) UNIQUE PRIMARY KEY, ". - "expires INTEGER)"; + "CREATE TABLE %s (server_url VARCHAR(2047), timestamp INTEGER, ". + "salt CHAR(40), UNIQUE (server_url, timestamp, salt)"; $this->sql['assoc_table'] = "CREATE TABLE %s (server_url VARCHAR(2047), handle VARCHAR(255), ". @@ -57,9 +57,6 @@ class Auth_OpenID_SQLiteStore extends Auth_OpenID_SQLStore { $this->sql['get_nonce'] = "SELECT * FROM %s WHERE nonce = ?"; - - $this->sql['remove_nonce'] = - "DELETE FROM %s WHERE nonce = ?"; } } |