1
0
Fork 0

Properly check request method in login form

master
Anonymous Contributor 2023-08-23 18:16:35 +02:00
parent 5d0a79f20f
commit 6b88527f05
1 changed files with 1 additions and 1 deletions

View File

@ -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(