re #224 add option to require consent

This commit is contained in:
tonydspaniard
2019-08-21 11:13:48 +02:00
parent 07a7a7bda7
commit 5b071dae88
37 changed files with 406 additions and 106 deletions

View File

@ -12,6 +12,7 @@
namespace Da\User;
use Da\User\Contracts\MailChangeStrategyInterface;
use Da\User\Filter\AccessRuleFilter;
use yii\base\Module as BaseModule;
/**
@ -56,6 +57,24 @@ class Module extends BaseModule
* @var string prefix to be used as a replacement when user requests deletion of his data.
*/
public $gdprAnonymizePrefix = 'GDPR';
/**
* @var bool if true, all registered users will be prompted to give consent if they have not gave it earlier.
*/
public $gdprRequireConsentToAll = false;
/**
* @var null|string use this to customize the message that will appear as hint in the give consent checkbox
*/
public $gdprConsentMessage;
/**
* @var array list of url that does not require explicit data processing consent
* to be accessed, like own profile, account... You can use wildcards like `route/to/*`. Do not prefix
* "/" required for redirection, they are used to match against action ids.
*
* @see AccessRuleFilter
*/
public $gdprConsentExcludedUrls = [
'user/settings/*'
];
/**
* @var bool whether to enable two factor authentication or not
*/