diff --git a/src/index.php b/src/index.php index 6fbaad9..3407299 100644 --- a/src/index.php +++ b/src/index.php @@ -1,13 +1,15 @@ showNotif(" . json_encode($msg) . ");"; }else{ $sql = "SELECT * FROM users WHERE username =?"; $stmt = $db -> prepare($sql); @@ -21,13 +23,15 @@ if(isset($_POST['login'])){ $_SESSION['loggedin']='true'; $_SESSION['username']=$user['username']; $_SESSION['id']=$user['id']; - header("location:leaderboard.php"); + header("location:onboard.php"); exit(); }else{ - echo "password salah"; + $msg = "Password Salah !"; + echo ""; } }else{ - echo "username salah"; + $msg = "Username tidak ditemukan !"; + echo ""; } $stmt->close(); } @@ -56,6 +60,7 @@ $db->close();

don't have account yet? register now!

+