feat: fix bug that logging in with account/password cannot redirect successfully (When Casdoor working as a OAuth server) (#1819)

This commit is contained in:
helayzhang
2023-05-08 16:37:56 +08:00
committed by GitHub
parent 50586a9716
commit 3a6846b32c

View File

@@ -353,7 +353,7 @@ class LoginPage extends React.Component {
} }
}; };
if (res.status === "ok") { if (res.status === "ok") {
callback(); callback(res);
} else if (res.status === NextMfa) { } else if (res.status === NextMfa) {
this.setState({ this.setState({
getVerifyTotp: () => { getVerifyTotp: () => {