]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
seem to be storing tokens with null consumer keys
authorEvan Prodromou <evan@prodromou.name>
Fri, 6 Jun 2008 05:39:14 +0000 (01:39 -0400)
committerEvan Prodromou <evan@prodromou.name>
Fri, 6 Jun 2008 05:39:14 +0000 (01:39 -0400)
darcs-hash:20080606053914-84dde-e4bad8da4af7bed3ca8e8e84c5cc82ff2a82ad4c.gz

lib/oauthstore.php

index 688c7477a9f09674ed792e4e747196525b21dc42..ee644a7f7a8c3ba390eb3cbe3afeeab8f07cedce 100644 (file)
@@ -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;