]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/apioauthaccesstoken.php
Issue a warning when someone tries to exchange an unauthorized or
[quix0rs-gnu-social.git] / 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)