We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3c7f28 commit d156a44Copy full SHA for d156a44
src/webui/www/public/scripts/login.js
@@ -37,10 +37,13 @@ function submitLoginForm(event) {
37
xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded; charset=UTF-8");
38
xhr.addEventListener("readystatechange", () => {
39
if (xhr.readyState === 4) { // DONE state
40
- if ((xhr.status === 200) && (xhr.responseText === "Ok."))
+ if ((xhr.status === 200) && (xhr.responseText === "Ok.")) {
41
location.replace(location);
42
- else
+ location.reload(true);
43
+ }
44
+ else {
45
errorMsgElement.textContent = "QBT_TR(Invalid Username or Password.)QBT_TR[CONTEXT=HttpServer]";
46
47
}
48
});
49
xhr.addEventListener("error", () => {
0 commit comments