Cleaning up password reset message.

This commit is contained in:
Christian 'ketura' McCarty
2023-03-09 02:58:56 -06:00
parent 5792c817a5
commit 627f1887d5

View File

@@ -23,9 +23,6 @@ function register() {
alert("Unable to connect to server, either server is down or there is a problem" +
" with your internet connection");
},
"202": function () {
$(".error").html("Your password has successfully been reset! Please refresh the page and log in.");
},
"400": function () {
$(".error").html("Login is invalid. Login must be between 2-10 characters long, and contain only<br/>" +
" english letters, numbers or _ (underscore) and - (dash) characters.");
@@ -57,7 +54,7 @@ function login() {
if(status == "202") {
registrationScreen();
$("#registerButton").html("Update Password");
$(".error").html("Your password must be reset. Please enter a new password.");
$(".error").html("Your password has been reset. Please enter a new password.");
$("#login").val(login);
}
else {
@@ -69,12 +66,6 @@ function login() {
alert("Unable to connect to server, either server is down or there is a problem" +
" with your internet connection");
},
"202": function () {
registrationScreen();
$("#registerButton").html("Update Password");
$(".error").html("Your password must be reset. Please enter a new password.");
$("#login").val(login);
},
"401": function () {
$(".error").html("Invalid username or password. Try again.");
loginScreen();