allow backup code input for totp

This commit is contained in:
Milo Schwartz
2024-12-22 17:20:24 -05:00
parent 11cbafb92a
commit 4b34353354
4 changed files with 10 additions and 5 deletions

View File

@@ -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