mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-27 11:40:33 +00: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
@ -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.';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user