login redirect to home

This commit is contained in:
ui0ppk 2023-01-25 22:03:38 +02:00
parent 55600e43a2
commit 4a2ecd994f
1 changed files with 1 additions and 0 deletions

View File

@ -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);