Add email validation

This commit is contained in:
Adria Navarro 2023-06-13 12:51:42 +01:00
parent 4b7af2e16a
commit d041ad621f
1 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,9 @@ export const createValidationStore = () => {
case "email":
propertyValidator = string().email().nullable()
break
case "password":
propertyValidator = string().min(8)
break
default:
propertyValidator = string().nullable()
}