mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-08 00:50:28 +08:00
feat: improve error handling of webauthn login (#3744)
This commit is contained in:
@ -1070,6 +1070,8 @@ class LoginPage extends React.Component {
|
|||||||
.catch(error => {
|
.catch(error => {
|
||||||
Setting.showMessage("error", `${i18next.t("general:Failed to connect to server")}${error}`);
|
Setting.showMessage("error", `${i18next.t("general:Failed to connect to server")}${error}`);
|
||||||
});
|
});
|
||||||
|
}).catch(error => {
|
||||||
|
Setting.showMessage("error", `${error}`);
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.setState({
|
this.setState({
|
||||||
loginLoading: false,
|
loginLoading: false,
|
||||||
|
Reference in New Issue
Block a user