authentic/authentic2/templates
Benjamin Dauvergne ed76842bd5 management: add new command clean-unused-accounts
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.
2014-07-08 14:52:37 +02:00
..
admin Move templates and manage.py into authentic2 module directory 2011-02-10 22:56:45 +01:00
auth move all content of the auth2_auth module into authentic2 module [module reorg]~ 2014-03-19 10:46:27 +01:00
authentic2 management: add new command clean-unused-accounts 2014-07-08 14:52:37 +02:00
profiles templates: add templates for the email change view 2013-11-29 23:50:11 +01:00
registration templates: fix back link closing tag 2014-06-30 09:21:56 +02:00
404.html Move templates and manage.py into authentic2 module directory 2011-02-10 22:56:45 +01:00
500.html middleware: add a new LogCollector middleware 2014-03-21 00:12:21 +01:00
base.html Revert "templates: define default console object in base.html" 2013-12-12 15:48:03 +01:00
error.html templates: fix back link closing tag 2014-06-30 09:21:56 +02:00
error_ssl.html move all content of the auth2_auth module into authentic2 module [module reorg]~ 2014-03-19 10:46:27 +01:00
iframe.html Move to Django 1.3 way of handling static files 2011-12-08 14:51:15 +01:00
redirect.html Move templates and manage.py into authentic2 module directory 2011-02-10 22:56:45 +01:00