diff options
Diffstat (limited to 'include/api.php')
-rw-r--r-- | include/api.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/api.php b/include/api.php index a99ec8c0d..73547a00d 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) { |