edit register form layout

This commit is contained in:
smanylov
2025-12-22 14:30:25 +07:00
parent e26a8c4742
commit 2bf6fcac2f
7 changed files with 131 additions and 138 deletions
+8
View File
@@ -24,6 +24,10 @@ export const SignupFormSchema = z
.string()
.min(2, { error: 'register-error-name' })
.regex(/^[^0-9]*$/, { message: 'register-error-no-digits' })
.refine(
(value) => !/\p{Emoji}/u.test(value),
{ message: 'no-emoji-allowed' }
)
.trim(),
email: z
.string()
@@ -44,6 +48,10 @@ export const SignupFormSchema = z
.min(8, { error: 'register-error-password-symbols' })
.regex(/[a-zA-Zа-яёА-ЯЁ]/, { error: 'register-error-password-one-letter' })
.regex(/[0-9]/, { error: 'register-error-password-one-digit' })
.refine(
(value) => !/\p{Emoji}/u.test(value),
{ message: 'no-emoji-allowed' }
)
.trim(),
confirm_password: z
.string(),