forked from root/threadr.lostcave.ddnss.de
added redirect to userhome
parent
9dff324911
commit
6af5c11e09
|
@ -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();
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue