fix: enable captcha in the application which is not built-in (#1061)

This commit is contained in:
Resulte Lee
2022-08-23 23:30:45 +08:00
committed by GitHub
parent e2921419b9
commit f02875e1b1
5 changed files with 8 additions and 3 deletions

View File

@ -353,11 +353,13 @@ class ForgetPage extends React.Component {
<CountDownInput
disabled={this.state.username === "" || this.state.verifyType === ""}
onButtonClickArgs={[this.state.email, "email", Setting.getApplicationName(this.state.application), this.state.name]}
application={application}
/>
) : (
<CountDownInput
disabled={this.state.username === "" || this.state.verifyType === ""}
onButtonClickArgs={[this.state.phone, "phone", Setting.getApplicationName(this.state.application), this.state.name]}
application={application}
/>
)}
</Form.Item>