diff --git a/create_account.php b/create_account.php index 0036264..162c585 100644 --- a/create_account.php +++ b/create_account.php @@ -52,11 +52,11 @@ try { // Try opening the SQL database connection

Get started on your trophy-winning journey with your very own TrojanDestinyRL account!


-
+
- +

@@ -68,7 +68,7 @@ try { // Try opening the SQL database connection

 

- +

 

diff --git a/scripts/user_management.js b/scripts/user_management.js index 0a156a9..adf0c11 100644 --- a/scripts/user_management.js +++ b/scripts/user_management.js @@ -21,11 +21,16 @@ function verifyInput() { // Check if the username is filled out var username = document.forms["userForm"]["username"].value; - + // Alert if not if (username == "") { alert ("Must enter a username!"); return false; } + // Check if the name is already taken + if (!usernameConfirm()) { + alert ("Username already taken!"); + return false; + } // Check if a password is required, if so, make sure one is entered var password = document.forms["userForm"]["password"].value; @@ -46,10 +51,6 @@ function verifyInput() { return false; } - if (!usernameConfirm()) { - alert ("Username already taken!"); - return false; - } } function displayPassword() {