added redirect to userhome

master
BodgeMaster 2020-02-20 22:03:50 +01:00
parent 9dff324911
commit 6af5c11e09
1 changed files with 3 additions and 2 deletions

View File

@ -15,14 +15,15 @@ if ($statement->rowCount() > 0) {
//password correct //password correct
$_SESSION['user_id'] = $dbentry['id']; $_SESSION['user_id'] = $dbentry['id'];
$_SESSION['user_ip'] = $_SERVER['REMOTE_ADDR']; //ip will be used to prevent session stealing $_SESSION['user_ip'] = $_SERVER['REMOTE_ADDR']; //ip will be used to prevent session stealing
header("Location: https://lostcave.ddnss.de/common/threadr/userhome/");
} else { } else {
//password inorrect //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(); die();
} }
} else { } else {
//wrong user name //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(); die();
} }
?> ?>