From 6b88527f053d731294cc7f5e877bea565cd6da90 Mon Sep 17 00:00:00 2001 From: Anonymous Contributor Date: Wed, 23 Aug 2023 18:16:35 +0200 Subject: [PATCH] Properly check request method in login form --- pages/login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/login.php b/pages/login.php index bbbe681..704515c 100644 --- a/pages/login.php +++ b/pages/login.php @@ -3,7 +3,7 @@ $HTML->setHTMLTitle("Login"); $HTML->importHTML("login.html"); - if(isset($_POST['login'])) + if($_SERVER['REQUEST_METHOD'] == 'POST') { include_once 'app/FormValidator.php'; $validator = new FormValidator(array(