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 ($password == $user->getPassword($con, $username)) {
|
||||
$_SESSION["user"] = $user->getID($con, $username);
|
||||
header("Location: /home");
|
||||
} else {
|
||||
$passwordiswrong = true;
|
||||
echo $password." - sex - ".$user->getPassword($con, $username);
|
||||
|
|
|
|||
Loading…
Reference in New Issue