I've found that when a temporary invitation goes past the expiry date the Valid until field changes to Thu, 01/01/1970 - 01:00. Is there any reason this is happening?

Many thanks for your help

Comments

danmurf’s picture

I've also found that when this happens, you can't delete the invitation/user through the invitation interface - they have to be deleted from the 'users' page.

Many thanks

jpetso’s picture

Category: support » bug

This is a bug. Login Ticket API works in a way that tickets (= invitations, here) are not yet deleted when they expire: a cronjob removes them, and even then it still waits two months before actually deleting it, so that generated login codes don't possibly clash. Which is ok.

So the error is not that the invitations still exist, but that they are displayed. I'll look into this, can't be all too difficult.

danmurf’s picture

Thanks for your help. I have cron running so that should all work ok. Most invites I use are 1 week, 2 max. Does this mean that they will expire (so the temp user will no longer be able to log on) but remain on the system as expired in 1970 for a month before they are automatically deleted by cron?

jpetso’s picture

Does this mean that they will expire (so the temp user will no longer be able to log on) but remain on the system as expired in 1970 for a month before they are automatically deleted by cron?

I believe so. That is, until I fix it.

jpetso’s picture

Priority: Normal » Critical
Status: Active » Fixed

Ok, sorry for the delay. I just fixed this, and it was just as straightforward as I had thought. A bugfix release will be issued imminently (that should be 5.x-1.10, I believe).

Anonymous’s picture

Status: Fixed » Closed (fixed)