mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-10-06 00:03:39 -04:00
Fix login
This commit is contained in:
parent
35a3f921f9
commit
5f87e3a231
@ -78,9 +78,6 @@ function check_login($user, $pass) {
|
||||
if (!filter_var($user, FILTER_VALIDATE_EMAIL) && !ctype_alnum(str_replace(array('_', '.', '-'), '', $user))) {
|
||||
return false;
|
||||
}
|
||||
if (!strpos(shell_exec("file --mime-encoding /usr/bin/doveadm"), "binary")) {
|
||||
return false;
|
||||
}
|
||||
$user = strtolower(trim($user));
|
||||
$stmt = $pdo->prepare("SELECT `password` FROM `admin`
|
||||
WHERE `superadmin` = '1'
|
||||
|
Loading…
x
Reference in New Issue
Block a user