undate full-name validation for register
This commit is contained in:
@@ -23,6 +23,7 @@ export const SignupFormSchema = z
|
||||
full_name: z
|
||||
.string()
|
||||
.min(3, { error: 'register-error-name' })
|
||||
.regex(/^[^0-9]*$/, { message: 'register-error-no-digits' })
|
||||
.trim(),
|
||||
email: z
|
||||
.string()
|
||||
|
||||
@@ -116,6 +116,7 @@
|
||||
"terms-of-use": "terms of use",
|
||||
"email-already-registered": "Email already registered",
|
||||
"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."
|
||||
}
|
||||
}
|
||||
@@ -116,6 +116,7 @@
|
||||
"terms-of-use": "условиями использования",
|
||||
"email-already-registered": "Такой Email уже зарегистрирован",
|
||||
"password-does-not-match" : "Пароль не совпадает",
|
||||
"email-not-found": "Email не найден"
|
||||
"email-not-found": "Email не найден",
|
||||
"register-error-no-digits": "В имени не должно быть цифр."
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user