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 c2337ab47c
commit 11bd98025c

View 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)