Properly check request method in login form
parent
5d0a79f20f
commit
6b88527f05
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue