mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 22:57:14 +02:00
#3616 - Allow admin login with email address
This commit is contained in:
@@ -429,6 +429,11 @@ class auth
|
||||
$row = $sql_auth->db_Fetch();
|
||||
$authname = $row['user_loginname'];
|
||||
}
|
||||
elseif ($sql_auth->db_Select("user", "*", "user_email='{$authname}' AND user_admin='1' "))
|
||||
{
|
||||
$row = $sql_auth->db_Fetch();
|
||||
$authname = $row['user_loginname'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$reason = 'iu';
|
||||
|
Reference in New Issue
Block a user