Add email validation
This commit is contained in:
parent
4b7af2e16a
commit
d041ad621f
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue