Expiration control
With Users Expiration Control, a verification ends on a date you choose. You can also add verified users to an extra Joomla user group, which they lose again when the verification ends.
Turn it on
- Open Components > JoomIdentity, click Options and go to the Users Expiration Control tab.
- Set Enable Expiration Control to Yes.
- Fill in the other fields and click Save.
| Option | What it does | Default |
|---|---|---|
| Default Expiration Date (in Days) | The number of days after today that the verify window suggests as the expiration date. | 30 |
| Default Extra Group | The group that the verify window suggests. | - Select Group - (none) |
| Reviewed User Can Delete | Whether users that you have verified or unverified may still delete their own files. | No |
Verify a user with an expiration date
- Open Components > JoomIdentity > Users and tick one or more users.
- Click Verify. A window opens.
- Check Set Expiration Date. It is required.
- Choose a group in Add to Group, or leave - Select Group - to add none.
- Click Process.
The users become Verified, are added to the group and get the Reviewed mark. The list shows the Expiration Date and the Extra Group of each user.
Only one extra group is stored per user. Choose a group that gives the extra rights you want for verified users, never a group with administrator rights.
Unverify
Unverify sets the status back to Not Verified, removes the user from the extra group and clears the expiration date.
The cron job
Expired users are only processed when this address is called:
https://example.com/index.php?option=com_joomidentity&task=cron.updateExpiredUsers&format=raw
Replace example.com with your domain. Add a cron job on your server that opens it once a day, for example:
wget -q -O /dev/null "https://example.com/index.php?option=com_joomidentity&task=cron.updateExpiredUsers&format=raw"
Your hosting control panel, such as cPanel or Plesk, has a page for cron jobs. Each run sets every user whose expiration date has passed back to not verified, removes the extra group and clears the date. The address answers with the number of users it updated.
Without the cron job, expired users stay verified.
Who may delete files
When Enable Expiration Control is Yes, the Remove button on the proof page shows only for users who have been reviewed, and only when Reviewed User Can Delete is Yes. Users who have not been reviewed yet cannot delete their files in that mode. When expiration control is off, all users can delete their own files.