From 673e2fe729287e85957fddd551886335ca27f165 Mon Sep 17 00:00:00 2001 From: Administrator Date: Sun, 27 May 2018 00:10:40 +0200 Subject: [PATCH] Added GDPR params --- src/User/Module.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/User/Module.php b/src/User/Module.php index 2ab8e72..d12126c 100644 --- a/src/User/Module.php +++ b/src/User/Module.php @@ -19,6 +19,22 @@ use yii\base\Module as BaseModule; */ class Module extends BaseModule { + /** + * @var bool whether to enable european G.D.P.R. compliance. + * This will add a few elements to comply with european general data protection regulation. + * This regulation affects to all companys in Europe a those companies outside that offer their + * service to the E.U. + * List of elements that will be added when this is enabled: + * - Checkbox to request consent on register form + * - Forgot me button in profile view. + * - Download my data button in profile + */ + public $enableGPDRcompliance = false; + /** + * @var null|array|string with the url to privacy policy. + * Must be in the same format as yii/helpers/Url::to requires. + */ + public $GDPRprivacyPolicyUrl = null; /** * @var bool whether to enable two factor authentication or not */