enable 2fa flow

This commit is contained in:
Milo Schwartz 2024-12-23 23:59:15 -05:00
parent b1afba191e
commit 9e50a580a5
No known key found for this signature in database
33 changed files with 605 additions and 2084 deletions

View file

@ -214,7 +214,13 @@ export default function LoginForm({ redirect, onLogin }: LoginFormProps) {
<FormLabel>Authenticator Code</FormLabel>
<FormControl>
<div className="flex justify-center">
<InputOTP maxLength={6} {...field} pattern={REGEXP_ONLY_DIGITS_AND_CHARS}>
<InputOTP
maxLength={6}
{...field}
pattern={
REGEXP_ONLY_DIGITS_AND_CHARS
}
>
<InputOTPGroup>
<InputOTPSlot index={0} />
<InputOTPSlot index={1} />