Only the IP and type are required fields

This commit is contained in:
Alex Tselegidis 2023-09-12 17:17:12 +03:00
parent 072ff2862e
commit c3eb4d1632

View file

@ -60,10 +60,7 @@ class Consents_model extends EA_Model {
public function validate(array $consent)
{
if (
empty($consent['first_name'])
|| empty($consent['last_name'])
|| empty($consent['email'])
|| empty($consent['ip'])
empty($consent['ip'])
|| empty($consent['type'])
)
{