mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
web: login: Improved error messages
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user