From abc4fcc3acfce869a42bc018e8c05fa407d81062 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Peters?= Date: Thu, 7 Feb 2019 19:40:04 +0100 Subject: [PATCH] [Web] Fix inactive admin login --- data/web/inc/functions.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/data/web/inc/functions.inc.php b/data/web/inc/functions.inc.php index dae26665..0c2b8ccc 100644 --- a/data/web/inc/functions.inc.php +++ b/data/web/inc/functions.inc.php @@ -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);