From c74bf006cc7012805af3c2965c977f5f36b74f37 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 16 Jan 2013 15:51:21 -0800 Subject: begin the hard slog on the api --- include/security.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'include/security.php') diff --git a/include/security.php b/include/security.php index 276c8f97c..0783a3c20 100644 --- a/include/security.php +++ b/include/security.php @@ -6,11 +6,7 @@ function authenticate_success($user_record, $login_initial = false, $interactive $_SESSION['addr'] = $_SERVER['REMOTE_ADDR']; -// logger('authenticate_success: ' . print_r($user_record,true)); -// logger('authenticate_success: ' . print_r($_SESSION,true)); - if(x($user_record,'account_id')) { -// logger('authenticate_success: Red-style'); $a->account = $user_record; $_SESSION['account_id'] = $user_record['account_id']; $_SESSION['authenticated'] = 1; @@ -115,10 +111,12 @@ function authenticate_success($user_record, $login_initial = false, $interactive intval($_SESSION['uid']) ); - call_hooks('logged_in', $a->user); } } + + if($login_initial) + call_hooks('logged_in', $user_record); if($return || x($_SESSION,'workflow')) { -- cgit v1.2.3