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
1 changed files with 3 additions and 4 deletions

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)