fix: send code missing parameter & show more detail responseError (#910)

This commit is contained in:
Resulte Lee
2022-07-25 23:46:38 +08:00
committed by GitHub
parent 4e3eedf246
commit bdc5c92ef0
2 changed files with 19 additions and 3 deletions

View File

@ -692,7 +692,7 @@ class LoginPage extends React.Component {
>
<CountDownInput
disabled={this.state.username?.length === 0 || !this.state.validEmailOrPhone}
onButtonClickArgs={[this.state.username, "", Setting.getApplicationOrgName(application), true]}
onButtonClickArgs={[this.state.username, this.state.validEmail ? "email" : "phone", Setting.getApplicationName(application)]}
/>
</Form.Item>
) : (