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!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 06:19:33
Script start
Timing: Jan 31 2025 06:19:33
Module start 'layout'
Timing: Jan 31 2025 06:19:33
Module start 'content'
Timing: Jan 31 2025 06:19:33
Module end 'content'
Timing: Jan 31 2025 06:19:33
Script end

Main resources:

Total runtime0.0342 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.1328151.2109
Module start 'layout' 0.00530.0032 739.343836.6484
Module start 'content' 0.00850.0237 775.992286.0313
Module end 'content' 0.03230.0018 862.023429.9922
Script end 0.0341  892.0156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00277.8093140.0002
Check MTime0.00123.3884140.0001
Mysql Total
Database connection0.00092.632910.0009
Mysqli_queries0.00288.329830.0009
Looping result0.00000.067010.0000
Template Total0.00133.710.0013
Template load0.00102.984510.0010
Template processing0.00020.708110.0002
Override
Cache load0.00072.042710.0007
General
dbfile0.013539.498880.0017
String conversion0.00000.025840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs