This commit is contained in:
mohadeseh safari committed 2025-05-06 22:19:50 -04:00
1 parent 9a5de71158
commit f928322ec7
1 file changed
+2 -2
+2 -2
View File
@@ -10,8 +10,8 @@ const nameSchema = joi
.pattern(/^[\p{L}\p{M}''\- ]+$/u)
.messages({
"string.empty": "Name is required",
"string.max": "Name should be less than 50 characters",
"string.pattern.base": "Please use only letters, spaces, apostrophes, or hyphens"
"string.max": "Name must be less than 50 characters",
"string.pattern.base": "Name must contain only letters, spaces, apostrophes, or hyphens"
});
const passwordSchema = joi