diff options
Diffstat (limited to 'include/auth.php')
-rw-r--r-- | include/auth.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/auth.php b/include/auth.php index 8e9d19d8a..8f9019e01 100644 --- a/include/auth.php +++ b/include/auth.php @@ -46,7 +46,7 @@ else { if((x($_POST,'auth-params')) && $_POST['auth-params'] == 'login') { $r = q("SELECT * FROM `user` - WHERE `email` = '%s' AND `password` = '%s' LIMIT 1", + WHERE `email` = '%s' AND `password` = '%s' AND `blocked` = 0 AND `verified` = 1 LIMIT 1", dbesc(trim($_POST['login-name'])), dbesc($encrypted)); if(($r === false) || (! count($r))) { |