Skip to content

Commit 285cfb7

Browse files
author
Till Brehm
committed
Fix mailuser logins for systems with cutom mailuser logins.
1 parent be0ffbc commit 285cfb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/login/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public function render() {
160160
} else {
161161
if(stristr($username, '@')) {
162162
//* mailuser login
163-
$sql = "SELECT * FROM mail_user WHERE login = '$username'";
163+
$sql = "SELECT * FROM mail_user WHERE login = '$username' or email = '$username'";
164164
$mailuser = $app->db->queryOneRecord($sql);
165165
$user = false;
166166
if($mailuser) {

0 commit comments

Comments
 (0)