[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…
Reference in New Issue
Block a user