Skip to content

Commit

Permalink
fix: 2FA code should auto-submit
Browse files Browse the repository at this point in the history
  • Loading branch information
dukenv0307 committed Nov 7, 2023
1 parent 5df95a1 commit a65472d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/signin/ValidateCodeForm/BaseValidateCodeForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ function BaseValidateCodeForm(props) {
errorText={formError.twoFactorAuthCode ? props.translate(formError.twoFactorAuthCode) : ''}
hasError={hasError}
autoFocus
key="twoFactorAuthCode"
/>
)}
{hasError && <FormHelpMessage message={ErrorUtils.getLatestErrorMessage(props.account)} />}
Expand Down Expand Up @@ -360,6 +361,7 @@ function BaseValidateCodeForm(props) {
errorText={formError.validateCode ? props.translate(formError.validateCode) : ''}
hasError={hasError}
autoFocus
key="validateCode"
/>
{hasError && <FormHelpMessage message={ErrorUtils.getLatestErrorMessage(props.account)} />}
<View style={[styles.alignItemsStart]}>
Expand Down

0 comments on commit a65472d

Please sign in to comment.