diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-06-06 01:39:14 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-06-06 01:39:14 -0400 |
commit | e25d249a103363d3ea4ab1761063c90c21f9e2ff (patch) | |
tree | 625629108d2746cc21f63eade86a9aee37bfc96d | |
parent | 281dbc3177744ff522e96d844d194ff65b1f4776 (diff) |
seem to be storing tokens with null consumer keys
darcs-hash:20080606053914-84dde-e4bad8da4af7bed3ca8e8e84c5cc82ff2a82ad4c.gz
-rw-r--r-- | lib/oauthstore.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/oauthstore.php b/lib/oauthstore.php index 688c7477a..ee644a7f7 100644 --- a/lib/oauthstore.php +++ b/lib/oauthstore.php @@ -67,12 +67,13 @@ class LaconicaOAuthDataStore extends OAuthDataStore { } function new_request_token($consumer) { + common_debug('new_request_token("'.$consumer->consumer_key.'")', __FILE__); $t = new Token(); $t->consumer_key = $consumer->consumer_key; $t->tok = common_good_rand(16); $t->secret = common_good_rand(16); $t->type = 0; # request - $t->state = 0; + $t->state = 0; # unauthorized $t->created = DB_DataObject_Cast::dateTime(); if (!$t->insert()) { return NULL; |