mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-01-18 04:59:16 +02:00
[Web] Fix inactive admin login
This commit is contained in:
parent
b94595ce0c
commit
abc4fcc3ac
@ -406,6 +406,7 @@ function check_login($user, $pass) {
|
||||
$user = strtolower(trim($user));
|
||||
$stmt = $pdo->prepare("SELECT `password` FROM `admin`
|
||||
WHERE `superadmin` = '1'
|
||||
AND `active` = '1'
|
||||
AND `username` = :user");
|
||||
$stmt->execute(array(':user' => $user));
|
||||
$rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
Loading…
x
Reference in New Issue
Block a user