]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Issue a warning when someone tries to exchange an unauthorized or
authorZach Copley <zach@status.net>
Mon, 11 Jan 2010 20:52:56 +0000 (12:52 -0800)
committerZach Copley <zach@status.net>
Thu, 14 Jan 2010 02:41:06 +0000 (02:41 +0000)
otherwise bad req token for an access token.

actions/apioauthaccesstoken.php

index 9b99724d0cd54a50a9a491898329c6cabce4518c..67359d765d6871a3c4f10c6c5d46f471716f4c71 100644 (file)
@@ -88,11 +88,10 @@ class ApiOauthAccessTokenAction extends Action
 
        if (empty($atok)) {
            common_debug('couldn\'t get access token.');
-           $this->outputError("Badness.");
-           return;
+           print "Token exchange failed. Has the request token been authorized?\n";
+       } else {
+           print $atok;
        }
-
-       print $atok;
     }
 
     function outputError($msg)