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
|
||||
{
|
||||
$validator
|
||||
->notEmptyString('email')
|
||||
->email('email')
|
||||
->requirePresence(['email'], 'create');
|
||||
return $validator;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue