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;
|
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();
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue