From 627f1887d5e90954960f94340893288f48d0acc8 Mon Sep 17 00:00:00 2001 From: Christian 'ketura' McCarty Date: Thu, 9 Mar 2023 02:58:56 -0600 Subject: [PATCH] Cleaning up password reset message. --- .../gemp-lotr-async/src/main/web/src/Login/login.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/gemp-lotr/gemp-lotr-async/src/main/web/src/Login/login.js b/gemp-lotr/gemp-lotr-async/src/main/web/src/Login/login.js index 58fad4380..8b75638bc 100644 --- a/gemp-lotr/gemp-lotr-async/src/main/web/src/Login/login.js +++ b/gemp-lotr/gemp-lotr-async/src/main/web/src/Login/login.js @@ -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
" + " 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();