We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 7885dadf authored by Zach Copley's avatar Zach Copley

Issue a warning when someone tries to exchange an unauthorized or

otherwise bad req token for an access token.
parent bfe3e3c7
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment