mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 06:01:33 -06:00
Improve WebUI login behavior
Closes #20441. PR #20442. --------- Co-authored-by: Chocobo1 <Chocobo1@users.noreply.github.com>
This commit is contained in:
@@ -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.';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user