FriendsOfSymfony / FOSUserBundle

Provides user management for your Symfony project. Compatible with Doctrine ORM & ODM, and custom storages.

Home Page:https://symfony.com/doc/master/bundles/FOSUserBundle/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

User Confirmation Email expiry

jtaylor100 opened this issue · comments

Describe the feature:
The ability to allow user email confirmations to expire after a given time, removing the users that created them.

In our application, we find after a while we accumulate users that have not made it past the first phase of registration, the email confirmation. At this point the user's email remains in our database and blocks new users from being created with that email address. This is a painful point when our clients want to do manual user management with users that have already requested a self-sign up.

What would be great is a link_ttl option on fos_user.registration.confirmation, which states how long a confirmation email should stay usable. After that time expires, the link becomes unusable and the user entry related to it should be deleted, either through a regularly run 'clean up' command or perhaps there is a better way.

What do you think? Has this been requested before? @customer-alliance may be interested in implementing it if the maintainers think it's a good idea.

Closed due to no response.