commit 81f262545f937074987581e5606cbe6aa8013c5c
Author: Richard Mansfield <email address hidden>
Date: Thu Dec 22 10:23:41 2011 +1300
Expire users when they've been inactive for too long (bug #890929)
The "Default account inactivity time" setting allows the admin to
specify a time period after which users who have not used the site
will be unable to login, but this is not currently enforced.
This change modifies the inactivity cron job to set the expiry date to
the current date for any user who has been inactive for longer than
the 'defaultaccountinactiveexpire' period. It also now considers the
lastaccess and ctime fields as well as the lastlogin field.
This allows the admin to reactivate inactive users by resetting their
expiry dates in account settings.
The active column on the user table is currently only used to decide
whether users should be displayed in search results, and users are set
to inactive whenever they are deleted, suspended, or expire.
Change-Id: Ieaf7a0b36865af726fc2526895146373efbb2741
Signed-off-by: Richard Mansfield <email address hidden>
Reviewed: https:/ /reviews. mahara. org/959 gitorious. org/mahara/ mahara/ commit/ 81f262545f93707 4987581e5606cbe 6aa8013c5c
Committed: http://
Submitter: Francois Marier (<email address hidden>)
Branch: master
commit 81f262545f93707 4987581e5606cbe 6aa8013c5c
Author: Richard Mansfield <email address hidden>
Date: Thu Dec 22 10:23:41 2011 +1300
Expire users when they've been inactive for too long (bug #890929)
The "Default account inactivity time" setting allows the admin to
specify a time period after which users who have not used the site
will be unable to login, but this is not currently enforced.
This change modifies the inactivity cron job to set the expiry date to inactiveexpire' period. It also now considers the
the current date for any user who has been inactive for longer than
the 'defaultaccount
lastaccess and ctime fields as well as the lastlogin field.
This allows the admin to reactivate inactive users by resetting their
expiry dates in account settings.
The active column on the user table is currently only used to decide
whether users should be displayed in search results, and users are set
to inactive whenever they are deleted, suspended, or expire.
Change-Id: Ieaf7a0b36865af 726fc2526895146 373efbb2741
Signed-off-by: Richard Mansfield <email address hidden>