mirror of
https://github.com/e107inc/e107.git
synced 2025-08-09 16:17: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();
|
$row = $sql_auth->db_Fetch();
|
||||||
$authname = $row['user_loginname'];
|
$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
|
else
|
||||||
{
|
{
|
||||||
$reason = 'iu';
|
$reason = 'iu';
|
||||||
|
Reference in New Issue
Block a user