diff --git a/components/auth/register-form.tsx b/components/auth/register-form.tsx index 50e8af8..d33cb8d 100644 --- a/components/auth/register-form.tsx +++ b/components/auth/register-form.tsx @@ -18,6 +18,7 @@ export function RegisterForm({ whitelistOnly = false }: RegisterFormProps) { const router = useRouter(); const [email, setEmail] = useState(""); const [password, setPassword] = useState(""); + const [confirmPassword, setConfirmPassword] = useState(""); const [displayName, setDisplayName] = useState(""); const [error, setError] = useState(null); const [isPending, startTransition] = useTransition(); @@ -27,7 +28,7 @@ export function RegisterForm({ whitelistOnly = false }: RegisterFormProps) { setError(null); startTransition(async () => { - const result = await register({ email, password, displayName: displayName || undefined }); + const result = await register({ email, password, confirmPassword, displayName: displayName || undefined }); if (result.success) { if (process.env.NEXT_PUBLIC_E2E_SKIP_EMAIL_VERIFICATION === "true") { router.push("/account"); @@ -114,6 +115,19 @@ export function RegisterForm({ whitelistOnly = false }: RegisterFormProps) {

+
+ + setConfirmPassword(e.target.value)} + required + disabled={isPending} + /> +
+