From 6af5c11e0929459e349847dbcc9724951079c5e2 Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Thu, 20 Feb 2020 22:03:50 +0100 Subject: [PATCH] added redirect to userhome --- threadr/login/redirect.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(); } ?>