Fix login

master
andryyy 2016-12-13 23:01:21 +01:00
parent 35a3f921f9
commit 5f87e3a231
1 changed files with 0 additions and 3 deletions

View File

@ -78,9 +78,6 @@ function check_login($user, $pass) {
if (!filter_var($user, FILTER_VALIDATE_EMAIL) && !ctype_alnum(str_replace(array('_', '.', '-'), '', $user))) { if (!filter_var($user, FILTER_VALIDATE_EMAIL) && !ctype_alnum(str_replace(array('_', '.', '-'), '', $user))) {
return false; return false;
} }
if (!strpos(shell_exec("file --mime-encoding /usr/bin/doveadm"), "binary")) {
return false;
}
$user = strtolower(trim($user)); $user = strtolower(trim($user));
$stmt = $pdo->prepare("SELECT `password` FROM `admin` $stmt = $pdo->prepare("SELECT `password` FROM `admin`
WHERE `superadmin` = '1' WHERE `superadmin` = '1'