Forums / Developer / Disabling users by expiry date

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Disabling users by expiry date

Author Message

Trevor Clowry

Monday 16 May 2005 2:57:32 am

I have a modified content class called "User" in the Users class group list.

The User class has an attribute "expiry_date" and the idea is that if the expiry date is less than the current date, then the user can't log in and their account is disabled.
I was thinking of using a cronjob to check each day if the users accounts have expired. However i get stuck in trying to understand how to disable the users.
Do i need to change the login kernel files to implement this?
Does anyone know a better way to implement this functionality?

Thanks!