login redirect to home
This commit is contained in:
parent
55600e43a2
commit
4a2ecd994f
|
|
@ -23,6 +23,7 @@ if(isset($_POST['submit'])) {
|
||||||
if ($result > 0) {
|
if ($result > 0) {
|
||||||
if ($password == $user->getPassword($con, $username)) {
|
if ($password == $user->getPassword($con, $username)) {
|
||||||
$_SESSION["user"] = $user->getID($con, $username);
|
$_SESSION["user"] = $user->getID($con, $username);
|
||||||
|
header("Location: /home");
|
||||||
} else {
|
} else {
|
||||||
$passwordiswrong = true;
|
$passwordiswrong = true;
|
||||||
echo $password." - sex - ".$user->getPassword($con, $username);
|
echo $password." - sex - ".$user->getPassword($con, $username);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue