Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: auto-submit one-time password (OTP) after entering #2257

Merged
merged 10 commits into from
Sep 14, 2022
7 changes: 5 additions & 2 deletions src/login/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default class Login extends React.Component {
this.errors = json.text
otpLength = json.otpLength;
} catch (e) {
/* */
console.log(`could not pass error json: ${e}`);
dblythy marked this conversation as resolved.
Show resolved Hide resolved
}
}

Expand Down Expand Up @@ -113,7 +113,10 @@ export default class Login extends React.Component {
input={
<input
name='otpCode'
type='number'
type='text'
inputMode="numeric"
autoComplete='one-time-code'
pattern="[0-9]*"
onChange={e => updateField('otp', e)}
ref={this.inputRefMfa}
/>
Expand Down