From fbdbc854e9e94dba3786b9943f124c58a7ad8814 Mon Sep 17 00:00:00 2001 From: LinuxMint4Ever <> Date: Thu, 20 Feb 2020 21:50:33 +0100 Subject: [PATCH] added redirect back to login page if there was an authentication error --- threadr/login/redirect.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/threadr/login/redirect.php b/threadr/login/redirect.php index 3578a1e..1096582 100644 --- a/threadr/login/redirect.php +++ b/threadr/login/redirect.php @@ -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(); } ?>