Skip to content

Commit

Permalink
Merge pull request #30966 from dukenv0307/fix/30370
Browse files Browse the repository at this point in the history
Fix: 2FA code should auto-submit after entering the code for the first time
  • Loading branch information
srikarparsi authored Nov 8, 2023
2 parents c2e4042 + a65472d commit 89569c6
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 89569c6

Please sign in to comment.