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
|
//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();
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue