seem to be storing tokens with null consumer keys
darcs-hash:20080606053914-84dde-e4bad8da4af7bed3ca8e8e84c5cc82ff2a82ad4c.gz
This commit is contained in:
parent
281dbc3177
commit
e25d249a10
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user