forked from root/threadr.lostcave.ddnss.de
added redirect back to login page if there was an authentication error
parent
4bd652a6e8
commit
fbdbc854e9
|
@ -16,10 +16,12 @@ if ($statement->rowCount() > 0) {
|
|||
echo 1;
|
||||
} else {
|
||||
//password inorrect
|
||||
echo 0;
|
||||
header("Location: https://lostcave.ddnss.de/login?error=credentials");
|
||||
die();
|
||||
}
|
||||
} else {
|
||||
//wrong user name
|
||||
echo 0;
|
||||
header("Location: https://lostcave.ddnss.de/login?error=credentials&1=0");
|
||||
die();
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue