mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 17:14:42 +02:00
Code cleanup and optimization
This commit is contained in:
@@ -186,7 +186,7 @@ else
|
||||
|
||||
if (in_array(varset($pref['user_audit_class'], ''), $class_list))
|
||||
{
|
||||
e107::getAdminLog()->user_audit(USER_AUDIT_LOGIN, 'Login via admin page', $row['user_id'], $row['user_name']);
|
||||
e107::getAdminLog()->user_audit(USER_AUDIT_LOGIN, ['Login via admin page'], $row['user_id'], $row['user_name']);
|
||||
}
|
||||
|
||||
$edata_li = array("user_id"=>$row['user_id'], "user_name"=>$row['user_name'], 'class_list'=>implode(',', $class_list), 'user_admin'=> $row['user_admin']);
|
||||
@@ -412,7 +412,8 @@ class auth
|
||||
* @param string $authname, entered name
|
||||
* @param string $authpass, entered pass
|
||||
* @param object $authresponse [optional]
|
||||
* @return boolean if fail, else result array
|
||||
* @return array if fail, 'authfail' will contain a message.
|
||||
*
|
||||
*/
|
||||
public function authcheck($authname, $authpass, $authresponse = '')
|
||||
{
|
||||
|
Reference in New Issue
Block a user