[Web] Fix inactive admin login

This commit is contained in:
André Peters 2019-02-07 19:40:04 +01:00 committed by GitHub
parent b94595ce0c
commit abc4fcc3ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);