diff --git a/threadr/login/redirect.php b/threadr/login/redirect.php index a42ab1c..a7d53a3 100644 --- a/threadr/login/redirect.php +++ b/threadr/login/redirect.php @@ -15,14 +15,15 @@ if ($statement->rowCount() > 0) { //password correct $_SESSION['user_id'] = $dbentry['id']; $_SESSION['user_ip'] = $_SERVER['REMOTE_ADDR']; //ip will be used to prevent session stealing + header("Location: https://lostcave.ddnss.de/common/threadr/userhome/"); } else { //password inorrect - header("Location: https://lostcave.ddnss.de/common/threadr/login?error=credentials"); + header("Location: https://lostcave.ddnss.de/common/threadr/login/?error=credentials"); die(); } } else { //wrong user name - header("Location: https://lostcave.ddnss.de/common/threadr/login?error=credentials&1=0"); + header("Location: https://lostcave.ddnss.de/common/threadr/login/?error=credentials&1=0"); die(); } ?>