1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-29 09:11:11 +01:00

Update Validate.php

This commit is contained in:
Thomas Zilio 2019-09-19 17:50:10 +02:00
parent 7ab5cedb45
commit c36a8abaa2

View File

@ -61,6 +61,8 @@ class Validate
// Controllo sulla sintassi // Controllo sulla sintassi
if (starts_with($vat_number, 'IT') && !static::vatCheckIT($vat_number)) { if (starts_with($vat_number, 'IT') && !static::vatCheckIT($vat_number)) {
$result['valid-format'] = false; $result['valid-format'] = false;
return $result;
} }
/* /*
@ -120,6 +122,8 @@ class Validate
$result = []; $result = [];
if (!v::email()->validate($email)) { if (!v::email()->validate($email)) {
$result['valid-format'] = false; $result['valid-format'] = false;
return $result;
} }
// Controllo attraverso apilayer // Controllo attraverso apilayer