summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-01-11 12:52:56 -0800
committerZach Copley <zach@status.net>2010-01-14 02:41:06 +0000
commit7885dadfe7807f6a87c3d8ff0687280f4875eeef (patch)
treefa7bc1d63c6d09568ceb9cc718f8106e2c1d5edb /actions
parentbfe3e3c74e70c50f8f8358299960dbd3aebd482f (diff)
Issue a warning when someone tries to exchange an unauthorized or
otherwise bad req token for an access token.
Diffstat (limited to 'actions')
-rw-r--r--actions/apioauthaccesstoken.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/actions/apioauthaccesstoken.php b/actions/apioauthaccesstoken.php
index 9b99724d0..67359d765 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)