mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-14 02:00:32 +08:00
web: login: Improved error messages
This commit is contained in:
parent
6661efe61d
commit
f22e05ac88
@ -69,7 +69,7 @@ function __login() {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 403:
|
case 403:
|
||||||
wm.error("Invalid credentials").then(__tryAgain);
|
wm.error("Invalid username, password, or OTP").then(__tryAgain);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default: {
|
default: {
|
||||||
@ -82,7 +82,7 @@ function __login() {
|
|||||||
if (error === "ValidatorError") {
|
if (error === "ValidatorError") {
|
||||||
wm.error("Invalid characters in credentials").then(__tryAgain);
|
wm.error("Invalid characters in credentials").then(__tryAgain);
|
||||||
} else {
|
} else {
|
||||||
wm.error("Login error", http.responseText).then(__tryAgain);
|
wm.error("Unexpected login error:", http.responseText).then(__tryAgain);
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user