undate full-name validation for register

This commit is contained in:
smanylov
2025-12-17 15:43:13 +07:00
parent 61cd288359
commit fd59fb3e5e
3 changed files with 5 additions and 2 deletions
+1
View File
@@ -23,6 +23,7 @@ export const SignupFormSchema = z
full_name: z full_name: z
.string() .string()
.min(3, { error: 'register-error-name' }) .min(3, { error: 'register-error-name' })
.regex(/^[^0-9]*$/, { message: 'register-error-no-digits' })
.trim(), .trim(),
email: z email: z
.string() .string()
+2 -1
View File
@@ -116,6 +116,7 @@
"terms-of-use": "terms of use", "terms-of-use": "terms of use",
"email-already-registered": "Email already registered", "email-already-registered": "Email already registered",
"password-does-not-match" : "Password does not match", "password-does-not-match" : "Password does not match",
"email-not-found": "Email not found" "email-not-found": "Email not found",
"register-error-no-digits": "The name should not contain a number."
} }
} }
+2 -1
View File
@@ -116,6 +116,7 @@
"terms-of-use": "условиями использования", "terms-of-use": "условиями использования",
"email-already-registered": "Такой Email уже зарегистрирован", "email-already-registered": "Такой Email уже зарегистрирован",
"password-does-not-match" : "Пароль не совпадает", "password-does-not-match" : "Пароль не совпадает",
"email-not-found": "Email не найден" "email-not-found": "Email не найден",
"register-error-no-digits": "В имени не должно быть цифр."
} }
} }