summaryrefslogtreecommitdiffstats
path: root/Auth/OpenID/SQLiteStore.php
diff options
context:
space:
mode:
Diffstat (limited to 'Auth/OpenID/SQLiteStore.php')
-rw-r--r--Auth/OpenID/SQLiteStore.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Auth/OpenID/SQLiteStore.php b/Auth/OpenID/SQLiteStore.php
index 168f3fa..18da516 100644
--- a/Auth/OpenID/SQLiteStore.php
+++ b/Auth/OpenID/SQLiteStore.php
@@ -21,7 +21,7 @@ class Auth_OpenID_SQLiteStore extends Auth_OpenID_SQLStore {
{
$this->sql['nonce_table'] =
"CREATE TABLE %s (server_url VARCHAR(2047), timestamp INTEGER, ".
- "salt CHAR(40), UNIQUE (server_url, timestamp, salt)";
+ "salt CHAR(40), UNIQUE (server_url, timestamp, salt))";
$this->sql['assoc_table'] =
"CREATE TABLE %s (server_url VARCHAR(2047), handle VARCHAR(255), ".
@@ -53,7 +53,7 @@ class Auth_OpenID_SQLiteStore extends Auth_OpenID_SQLStore {
"DELETE FROM %s WHERE server_url = ? AND handle = ?";
$this->sql['add_nonce'] =
- "INSERT OR REPLACE INTO %s (nonce, expires) VALUES (?, ?)";
+ "INSERT INTO %s (server_url, timestamp, salt) VALUES (?, ?, ?)";
$this->sql['get_nonce'] =
"SELECT * FROM %s WHERE nonce = ?";