fix: [individual:validation] Enforce email format to be a valid email address

refacto/CRUDComponent
Sami Mokaddem 2023-12-12 09:13:02 +01:00
parent 96e4aceb28
commit 42a5bd03c6
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ class IndividualsTable extends AppTable
public function validationDefault(Validator $validator): Validator
{
$validator
->notEmptyString('email')
->email('email')
->requirePresence(['email'], 'create');
return $validator;
}