mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-22 22:33:34 -07:00
Fixed reloading page after login
This commit is contained in:
parent
ace26aae3b
commit
95b703244e
1 changed files with 4 additions and 2 deletions
|
@ -51,8 +51,10 @@ const submitLoginForm = (event) => {
|
|||
})
|
||||
.then(async (response) => {
|
||||
const responseText = await response.text();
|
||||
if (response.ok && (responseText === "Ok."))
|
||||
location.reload(); // reload after login
|
||||
if (response.ok && (responseText === "Ok.")) {
|
||||
location.replace(location); // redirect
|
||||
location.reload(true);
|
||||
}
|
||||
else
|
||||
errorMsgElement.textContent = `QBT_TR(Invalid Username or Password.)QBT_TR[CONTEXT=Login]\nQBT_TR(Server response:)QBT_TR[CONTEXT=Login] ${responseText}`;
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue