From 5af048d0698d4168c18a783ce68eb77f58357426 Mon Sep 17 00:00:00 2001 From: Administrator Date: Sun, 27 May 2018 02:20:18 +0200 Subject: [PATCH] Added exportable properties --- src/User/Module.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/User/Module.php b/src/User/Module.php index 8b50edb..cc7979e 100644 --- a/src/User/Module.php +++ b/src/User/Module.php @@ -23,7 +23,7 @@ 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. + * services 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. @@ -35,6 +35,21 @@ class Module extends BaseModule * Must be in the same format as yii/helpers/Url::to requires. */ public $GDPRprivacyPolicyUrl = null; + /** + * @var array with the name of the user identity properties to be included when user request download of his data. + * Names can include relations like `profile.name` + */ + public $GDPRexportProperties = [ + 'email', + 'username', + 'profile.public_email', + 'profile.name', + 'profile.gravatar_email', + 'profile.gravatar_id', + 'profile.location', + 'profile.website', + 'profile.bio' + ]; /** * @var bool whether to enable two factor authentication or not */