forked from GNUsocial/gnu-social
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
bfe3e3c74e
commit
7885dadfe7
@ -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