mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Updated login event for BC with 0.7.
This commit is contained in:
parent
b597bff482
commit
e931dff9f8
@ -114,7 +114,7 @@ else
|
||||
e107::getAdminLog()->user_audit(USER_AUDIT_LOGIN, '', $user_id, $user_name);
|
||||
}
|
||||
|
||||
$edata_li = array("user_id"=>$row['user_id'], "user_name"=>$row['user_name'], 'class_list'=>implode(',', $class_list));
|
||||
$edata_li = array("user_id"=>$row['user_id'], "user_name"=>$row['user_name'], 'class_list'=>implode(',', $class_list), 'user_admin'=> $row['user_admin']);
|
||||
|
||||
e107::getEvent()->trigger("login", $edata_li);
|
||||
|
||||
|
@ -194,6 +194,7 @@ class userlogin
|
||||
$user_id = $this->userData['user_id'];
|
||||
$user_name = $this->userData['user_name'];
|
||||
$user_xup = $this->userData['user_xup'];
|
||||
$user_admin = $this->userData['user_admin'];
|
||||
|
||||
/* restrict more than one person logging in using same us/pw */
|
||||
if($pref['disallowMultiLogin'])
|
||||
@ -225,8 +226,8 @@ class userlogin
|
||||
$this->e107->admin_log->user_audit(USER_AUDIT_LOGIN,'', $user_id,$user_name);
|
||||
}
|
||||
|
||||
$edata_li = array('user_id' => $user_id, 'user_name' => $username, 'class_list' => implode(',',$class_list), 'remember_me' => $autologin);
|
||||
$e_event->trigger("login", $edata_li);
|
||||
$edata_li = array('user_id' => $user_id, 'user_name' => $username, 'class_list' => implode(',',$class_list), 'remember_me' => $autologin, 'user_admin'=>$user_admin);
|
||||
e107::getEvent()->trigger("login", $edata_li);
|
||||
|
||||
if($_E107['cli'])
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user