diff --git a/verify.php b/verify.php index 220e9f9..0579f95 100644 --- a/verify.php +++ b/verify.php @@ -28,6 +28,9 @@ if($_SERVER["REQUEST_METHOD"] == "POST"){ // Check if password is empty if(empty(trim($_POST["prihlasovaciHeslo"]))){ $password_err = "Please enter your password."; + session_start(); + $_SESSION["wrongCr"] = true; + header("location: index.php"); } else{ $password = trim($_POST["prihlasovaciHeslo"]); }