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