mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Update Validate.php
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user