Issue a warning when someone tries to exchange an unauthorized or

otherwise bad req token for an access token.
This commit is contained in:
Zach Copley 2010-01-11 12:52:56 -08:00
parent bfe3e3c74e
commit 7885dadfe7

View File

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