1
0
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:
Tijn Kuyper
2019-01-13 13:10:57 +01:00
parent cb02f705b6
commit 7cfcaee1d0

View File

@@ -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';