summaryrefslogtreecommitdiff
path: root/actions/userauthorization.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/userauthorization.php')
-rw-r--r--actions/userauthorization.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/actions/userauthorization.php b/actions/userauthorization.php
index eb93b6fd3..c6d4bed4e 100644
--- a/actions/userauthorization.php
+++ b/actions/userauthorization.php
@@ -132,8 +132,12 @@ class UserauthorizationAction extends Action {
$callback = $req->get_parameter('oauth_callback');
if ($this->arg('accept')) {
- $this->authorize_token($req);
- $this->save_remote_profile($req);
+ if (!$this->authorize_token($req)) {
+ common_server_error(_t('Error authorizing token'));
+ }
+ if (!$this->save_remote_profile($req)) {
+ common_server_error(_t('Error saving remote profile'));
+ }
if (!$callback) {
$this->show_accept_message($req->get_parameter('oauth_token'));
} else {