mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-15 16:43:50 +08:00
Add EnableSignUp.
This commit is contained in:
@ -83,10 +83,14 @@ class AuthCallback extends React.Component {
|
||||
// Util.showMessage("success", `Authorization code: ${res.data}`);
|
||||
}
|
||||
} else {
|
||||
// Util.showMessage("error", `Log in failed:${res.msg}`);
|
||||
this.setState({
|
||||
msg: res.msg,
|
||||
});
|
||||
if (res.msg === "need sign up") {
|
||||
Util.goToLink("/register");
|
||||
} else {
|
||||
// Util.showMessage("error", `Log in failed:${res.msg}`);
|
||||
this.setState({
|
||||
msg: res.msg,
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user