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(); } ?>