mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 10:45:47 +08:00
feat: improve error handling of webauthn login (#3744)
This commit is contained in:
parent
d3a5539dae
commit
daa7b79915
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user