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 {
} else {
if(stristr($username, '@')) {
//* 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);
$user = false;
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