feat: fix MFA page bug in OAuth login (#1889)

This commit is contained in:
Yaodong Yu 2023-05-24 21:31:03 +08:00 committed by GitHub
parent a64263f812
commit 4d860525bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -254,9 +254,10 @@ class PromptPage extends React.Component {
return null;
}
if (!Setting.hasPromptPage(application)) {
if (!Setting.hasPromptPage(application) && this.state.promptType !== "mfa") {
return (
<Result
style={{display: "flex", flex: "1 1 0%", justifyContent: "center", flexDirection: "column"}}
status="error"
title={i18next.t("application:Sign Up Error")}
subTitle={i18next.t("application:You are unexpected to see this prompt page")}