aboutsummaryrefslogtreecommitdiffstats
path: root/include/security.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-10-04 23:05:45 -0700
committerfriendica <info@friendica.com>2012-10-04 23:05:45 -0700
commit7bee460df28bcd956206c3719e091fb500e3045d (patch)
tree4d06c81c9cfd39d2f88cab1c52aa5b6d11ef20ab /include/security.php
parent4302134fdd2640843aa1349e95285b966d1282ab (diff)
downloadvolse-hubzilla-7bee460df28bcd956206c3719e091fb500e3045d.tar.gz
volse-hubzilla-7bee460df28bcd956206c3719e091fb500e3045d.tar.bz2
volse-hubzilla-7bee460df28bcd956206c3719e091fb500e3045d.zip
provide auto admin registration as before, but allow the current admin to create other admins
Diffstat (limited to 'include/security.php')
-rw-r--r--include/security.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/security.php b/include/security.php
index da58a65c3..926b2a8fe 100644
--- a/include/security.php
+++ b/include/security.php
@@ -10,9 +10,9 @@ function authenticate_success($user_record, $login_initial = false, $interactive
// logger('authenticate_success: ' . print_r($_SESSION,true));
if(x($user_record,'account_id')) {
- logger('authenticate_success: Red-style');
+// logger('authenticate_success: Red-style');
$a->account = $user_record;
- $_SESSION['account_id'] = $a->account['account_id'];
+ $_SESSION['account_id'] = $user_record['account_id'];
$_SESSION['authenticated'] = 1;
if($login_initial) {