Benjamin Dauvergne
ed76842bd5
This command takes one required argument the number of days before deleting an account. Accounts not logged since this number of days are sent an email using templates, authentic2/unused_account_delete_subject.txt and authentic2/unused_account_delete_body.txt and are deleted using the DeletedUser model, to allow for mass deletion and actions on deletion. The template receives two variable: user and the days threshold. The --alert-thresholds parameter allow to set threshold in days after which accounts will receive an alert email warning people of the future deletion of their account. Alert thresholds are given as a comma separated list of days count, each days count must be inferior to the delete threshold. The mail templates are authentic2/unused_account_alert_subject.txt and authentic2/unused_account_alert_body.txt. The template receives three variable: user, the current alert threshold and the remaining days before reaching the delete threshold. You can limit cleaning to only some kind of accounts using the --filter option, for example --filter groups__name="Online registration" will limit the cleaning to accounts in the "Online registration" group. The --fake option will only print actions done and will not send emails or delete accounts. The --period option is the number of days between two runs of the clean-unused-accounts command, it defaults to one day. |
||
---|---|---|
.. | ||
admin | ||
auth | ||
authentic2 | ||
profiles | ||
registration | ||
404.html | ||
500.html | ||
base.html | ||
error.html | ||
error_ssl.html | ||
iframe.html | ||
redirect.html |