diff --git a/login.php b/login.php index 5d38c10..1b1d326 100644 --- a/login.php +++ b/login.php @@ -1,13 +1,17 @@ +grublock | login buildloggedoutheader(); +$getitstarted->header(); $passwordiswrong = false; $user = new User($con, 0); if(isset($_POST['submit'])) { @@ -23,7 +27,6 @@ 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); @@ -63,4 +66,4 @@ echo "form-control form-control-sm"; - \ No newline at end of file +