Issue a warning when someone tries to exchange an unauthorized or
otherwise bad req token for an access token.
This commit is contained in:
parent
c2337ab47c
commit
11bd98025c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user