Skip to content

Commit

Permalink
Improve WebUI login behavior
Browse files Browse the repository at this point in the history
Closes #20441.
PR #20442.
---------

Co-authored-by: Chocobo1 <Chocobo1@users.noreply.github.com>
  • Loading branch information
JayRet and Chocobo1 committed Mar 2, 2024
1 parent 0114610 commit f265eb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webui/www/public/scripts/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function submitLoginForm(event) {
xhr.addEventListener('readystatechange', function() {
if (xhr.readyState === 4) { // DONE state
if ((xhr.status === 200) && (xhr.responseText === "Ok."))
location.reload(true);
location.replace(location);
else
errorMsgElement.textContent = 'Invalid Username or Password.';
}
Expand Down

0 comments on commit f265eb0

Please sign in to comment.