Commit 285cfb78 authored by Till Brehm's avatar Till Brehm

Fix mailuser logins for systems with cutom mailuser logins.

parent be0ffbc7
...@@ -160,7 +160,7 @@ class login_index { ...@@ -160,7 +160,7 @@ class login_index {
} else { } else {
if(stristr($username, '@')) { if(stristr($username, '@')) {
//* mailuser login //* mailuser login
$sql = "SELECT * FROM mail_user WHERE login = '$username'"; $sql = "SELECT * FROM mail_user WHERE login = '$username' or email = '$username'";
$mailuser = $app->db->queryOneRecord($sql); $mailuser = $app->db->queryOneRecord($sql);
$user = false; $user = false;
if($mailuser) { if($mailuser) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment