added redirect back to login page if there was an authentication error

master
LinuxMint4Ever 2020-02-20 21:50:33 +01:00
parent 4bd652a6e8
commit fbdbc854e9
1 changed files with 4 additions and 2 deletions

View File

@ -16,10 +16,12 @@ if ($statement->rowCount() > 0) {
echo 1; echo 1;
} else { } else {
//password inorrect //password inorrect
echo 0; header("Location: https://lostcave.ddnss.de/login?error=credentials");
die();
} }
} else { } else {
//wrong user name //wrong user name
echo 0; header("Location: https://lostcave.ddnss.de/login?error=credentials&1=0");
die();
} }
?> ?>