mirror of
https://github.com/casdoor/casdoor.git
synced 2025-09-06 18:10:29 +08:00
feat: check if MFA is verified when required (#3954)
This commit is contained in:
@@ -404,6 +404,7 @@ class App extends Component {
|
|||||||
account={this.state.account}
|
account={this.state.account}
|
||||||
theme={this.state.themeData}
|
theme={this.state.themeData}
|
||||||
themeAlgorithm={this.state.themeAlgorithm}
|
themeAlgorithm={this.state.themeAlgorithm}
|
||||||
|
requiredEnableMfa={this.state.requiredEnableMfa}
|
||||||
updateApplication={(application) => {
|
updateApplication={(application) => {
|
||||||
this.setState({
|
this.setState({
|
||||||
application: application,
|
application: application,
|
||||||
|
@@ -1040,6 +1040,10 @@ class LoginPage extends React.Component {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.props.requiredEnableMfa) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
if (this.state.userCode && this.state.userCodeStatus === "success") {
|
if (this.state.userCode && this.state.userCodeStatus === "success") {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user