aboutsummaryrefslogtreecommitdiffstats
path: root/include/security.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/security.php')
-rw-r--r--include/security.php8
1 files changed, 3 insertions, 5 deletions
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')) {