Reputation: 12352
I would like to know which procedure should I take in the following situation:
A user register itself into the system and an email is sent to confirm the account (with the confirmation token). But the user doesn't comfirm the account... If later, the same user or another user try to register itself with the same email, should I:
Upvotes: 0
Views: 473
Reputation: 7140
In this scenario, I'd say that registering an account is like putting down a deposit. You've basically staked a claim to that user account. I would give the confirmation tokens an expiry time - say, three days or so. If a second user tries to register an account that conflicts, check whether the user it conflicts with is verified, and for unverified users, check whether their token is expired.
Upvotes: 2