diff --git a/static/webui/script.js b/static/webui/script.js index e4d0ed92..e8dce874 100644 --- a/static/webui/script.js +++ b/static/webui/script.js @@ -13,6 +13,7 @@ function doLogin() { } function loginFromLocalStorage() { + const isRegister = registerSubmit; doLoginRequest( data => { if (single.getCurrentPath() == "/webui/") { @@ -28,7 +29,7 @@ function loginFromLocalStorage() { }, () => { logout(); - alert("Login failed"); + alert(isRegister ? "Registration failed. Account already exists?" : "Login failed"); } ); }