diff options
author | friendica <info@friendica.com> | 2013-01-16 15:51:21 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-01-16 15:51:21 -0800 |
commit | c74bf006cc7012805af3c2965c977f5f36b74f37 (patch) | |
tree | faa19aa0b621e4a843c424123dfba5747190f0be /include/security.php | |
parent | 71d710c3f79d31ed629f89a58c0195304cbacba6 (diff) | |
download | volse-hubzilla-c74bf006cc7012805af3c2965c977f5f36b74f37.tar.gz volse-hubzilla-c74bf006cc7012805af3c2965c977f5f36b74f37.tar.bz2 volse-hubzilla-c74bf006cc7012805af3c2965c977f5f36b74f37.zip |
begin the hard slog on the api
Diffstat (limited to 'include/security.php')
-rw-r--r-- | include/security.php | 8 |
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')) { |