mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-29 14:18:26 +02:00
allow backup code input for totp
This commit is contained in:
parent
11cbafb92a
commit
4b34353354
4 changed files with 10 additions and 5 deletions
|
@ -45,6 +45,7 @@ import { createApiClient } from "@app/api";
|
|||
import { useEnvContext } from "@app/hooks/useEnvContext";
|
||||
import { passwordSchema } from "@server/auth/passwordSchema";
|
||||
import { get } from "http";
|
||||
import { REGEXP_ONLY_DIGITS_AND_CHARS } from "input-otp";
|
||||
|
||||
const requestSchema = z.object({
|
||||
email: z.string().email()
|
||||
|
@ -354,6 +355,7 @@ export default function ResetPasswordForm({
|
|||
<InputOTP
|
||||
maxLength={6}
|
||||
{...field}
|
||||
pattern={REGEXP_ONLY_DIGITS_AND_CHARS}
|
||||
>
|
||||
<InputOTPGroup>
|
||||
<InputOTPSlot
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue