bymayo / craft-porter

The missing toolbox for all things users (Delete Account, Password Policy, 2FA etc)
https://plugins.craftcms.com/porter
Other
1 stars 0 forks source link

Deactivated a users after X days #1

Open green17 opened 2 years ago

green17 commented 2 years ago

Does the plugin let you remove users after X days? so if they have not used the account or it's a trial etc?

bymayo commented 2 years ago

@green17 I've got it planned to create a console command (Which could be run via a CRON) and also a bit of logic if you log in to the CMS to allow users to be deleted after X amount of time that they are deactivated. Then garbage collection within Craft will handle actually deleting them completely.

Would this work for you?

How would you define if they are on a trial? Are they in a particular member group?

green17 commented 2 years ago

@bymayo that all sounds great.

Yes for trials they would be in a particular member group. If they are in that particular group longer than X days they get deactivated and then removed X days later after that, is that what your thinking? if so that would be great.

The other thing we were thinking was to remove users that are no longer active eg maybe a year/X days. So if the user has not logged in at that time then deactivated and then removed X days later after that. This would be for GDPR and just keeping the system clean.

An email to the users to say this is happing X days before would be great too. :-)