From 8731add0728904386a5e21ca2611e20b258a94f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20M=C3=BCller?= Date: Sun, 12 Mar 2023 13:51:11 +0100 Subject: [PATCH] fix double check issue with login function --- classes/user.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/user.php b/classes/user.php index f613373..71c8576 100644 --- a/classes/user.php +++ b/classes/user.php @@ -210,12 +210,12 @@ class User public static function login() { global $message, $mysqli; - if (!isset($_POST['email']) && !isset($_POST['email'])) + if (!isset($_POST['email']) && !isset($_POST['pass'])) { return; } - if ((!isset($_POST['email']) || !isset($_POST['email']))) + if ((!isset($_POST['email']) || !isset($_POST['pass']))) { $message = _("Please fill in your email and password!"); return;