From: Zach Copley Date: Mon, 11 Jan 2010 20:52:56 +0000 (-0800) Subject: Issue a warning when someone tries to exchange an unauthorized or X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7885dadfe7807f6a87c3d8ff0687280f4875eeef;p=quix0rs-gnu-social.git Issue a warning when someone tries to exchange an unauthorized or otherwise bad req token for an access token. --- diff --git a/actions/apioauthaccesstoken.php b/actions/apioauthaccesstoken.php index 9b99724d0c..67359d765d 100644 --- a/actions/apioauthaccesstoken.php +++ b/actions/apioauthaccesstoken.php @@ -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)