mirror of
https://github.com/fosrl/pangolin.git
synced 2025-05-13 05:40:38 +01:00
Merge pull request #612 from lxfrdl/feat/enhance_2fa_login
feat: enhance 2fa login usability
This commit is contained in:
commit
c543376a0a
1 changed files with 6 additions and 0 deletions
|
@ -215,6 +215,12 @@ export default function LoginForm({ redirect, onLogin }: LoginFormProps) {
|
||||||
pattern={
|
pattern={
|
||||||
REGEXP_ONLY_DIGITS_AND_CHARS
|
REGEXP_ONLY_DIGITS_AND_CHARS
|
||||||
}
|
}
|
||||||
|
onChange={(e) => {
|
||||||
|
field.onChange(e);
|
||||||
|
if (e.target.value.length === 6) {
|
||||||
|
mfaForm.handleSubmit(onSubmit)();
|
||||||
|
}
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<InputOTPGroup>
|
<InputOTPGroup>
|
||||||
<InputOTPSlot
|
<InputOTPSlot
|
||||||
|
|
Loading…
Reference in a new issue