aboutsummaryrefslogtreecommitdiffstats
path: root/include/api.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/api.php')
-rw-r--r--include/api.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/api.php b/include/api.php
index 12247c183..788a84208 100644
--- a/include/api.php
+++ b/include/api.php
@@ -78,11 +78,14 @@ require_once('include/items.php');
// list($consumer,$token) = $oauth->verify_request(OAuthRequest::from_request());
if (!is_null($token)){
$oauth->loginUser($token->uid);
+
+ $a->set_oauth_key($consumer->key);
+
call_hooks('logged_in', $a->user);
return;
}
echo __file__.__line__.__function__."<pre>";
- var_dump($consumer, $token);
+// var_dump($consumer, $token);
die();
}
catch(Exception $e) {