mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
Improve WebUI login behavior
Closes #20441. PR #20442. --------- Co-authored-by: Chocobo1 <Chocobo1@users.noreply.github.com>
This commit is contained in:
parent
0114610a40
commit
f265eb0166
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ function submitLoginForm(event) {
|
||||||
xhr.addEventListener('readystatechange', function() {
|
xhr.addEventListener('readystatechange', function() {
|
||||||
if (xhr.readyState === 4) { // DONE state
|
if (xhr.readyState === 4) { // DONE state
|
||||||
if ((xhr.status === 200) && (xhr.responseText === "Ok."))
|
if ((xhr.status === 200) && (xhr.responseText === "Ok."))
|
||||||
location.reload(true);
|
location.replace(location);
|
||||||
else
|
else
|
||||||
errorMsgElement.textContent = 'Invalid Username or Password.';
|
errorMsgElement.textContent = 'Invalid Username or Password.';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue