diff --git a/account/login.php b/account/login.php index b7282d9..8d2a939 100644 --- a/account/login.php +++ b/account/login.php @@ -47,7 +47,7 @@

Login

Passwords are important to keep safe. Don't tell anyone your password, not even Fluffy!


-
+
@@ -57,7 +57,7 @@ + diff --git a/app/account/login.php b/app/account/login.php index e1f8df5..8ff01a2 100644 --- a/app/account/login.php +++ b/app/account/login.php @@ -13,6 +13,16 @@ include "../server/conn.php"; if (isset($_POST['submit'])) { + /* + |------------------------------------------------------------- + | Set error status to 0 + |------------------------------------------------------------- + | if there are more than 0 error, then they cannot submit a + | request + |------------------------------------------------------------- + */ + $error = 0; + // Checking if Username is empty if (empty(trim($_POST["username"]))) { ?> @@ -20,6 +30,7 @@ if (isset($_POST['submit'])) { sniffleAdd('Who dis?', 'You must enter a username to login!', 'var(--red)', '../assets/icons/cross.svg'); - - - - + + + + + + - - + + + + + + + + + + + +