Add default value for gdpr

This commit is contained in:
E.Alamo
2018-05-27 16:25:08 +02:00
parent 83d6f9547e
commit 4f41f09fe2

View File

@ -76,6 +76,7 @@ class RegistrationForm extends Model
'passwordRequired' => ['password', 'required', 'skipOnEmpty' => $this->module->generatePasswords], 'passwordRequired' => ['password', 'required', 'skipOnEmpty' => $this->module->generatePasswords],
'passwordLength' => ['password', 'string', 'min' => 6, 'max' => 72], 'passwordLength' => ['password', 'string', 'min' => 6, 'max' => 72],
'gdprType' => ['gdpr_consent', 'boolean'], 'gdprType' => ['gdpr_consent', 'boolean'],
'gdprDefault' => ['gdpr_consent', 'default', 'value' => 0,'skipOnEmpty' => false],
'gdprRequired' => ['gdpr_consent', 'gdprRequired' => ['gdpr_consent',
'compare', 'compare',
'compareValue' => true, 'compareValue' => true,