mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-28 08:40:41 +01:00
Update Validate.php
This commit is contained in:
parent
7ab5cedb45
commit
c36a8abaa2
@ -61,6 +61,8 @@ class Validate
|
||||
// Controllo sulla sintassi
|
||||
if (starts_with($vat_number, 'IT') && !static::vatCheckIT($vat_number)) {
|
||||
$result['valid-format'] = false;
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -120,6 +122,8 @@ class Validate
|
||||
$result = [];
|
||||
if (!v::email()->validate($email)) {
|
||||
$result['valid-format'] = false;
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
// Controllo attraverso apilayer
|
||||
|
Loading…
Reference in New Issue
Block a user