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