fix: [individual:validation] Enforce email format to be a valid email address
parent
96e4aceb28
commit
42a5bd03c6
|
@ -57,7 +57,7 @@ class IndividualsTable extends AppTable
|
||||||
public function validationDefault(Validator $validator): Validator
|
public function validationDefault(Validator $validator): Validator
|
||||||
{
|
{
|
||||||
$validator
|
$validator
|
||||||
->notEmptyString('email')
|
->email('email')
|
||||||
->requirePresence(['email'], 'create');
|
->requirePresence(['email'], 'create');
|
||||||
return $validator;
|
return $validator;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue