Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deletion of accounts that were not activated #53

Open
vtomberg opened this issue Jul 19, 2016 · 1 comment
Open

Deletion of accounts that were not activated #53

vtomberg opened this issue Jul 19, 2016 · 1 comment

Comments

@vtomberg
Copy link
Collaborator

After two months delay accounts, which never have been activated should be deleted automatically.

@pjotrsavitski
Copy link
Member

This should be easily done by choosing a cron/periodic job module (any one that seems to be maintained to would with new Node.js versions and has enough usage).

Later on a job could either be registered with starting the backend service or a standalone script could be used for that. It does not really have to have much insight into the logic of the system, just to have the database connection and ability to run a simple query that would purge any accounts that fit certain condition (the connection could even be established each time that job starts and terminated as soon as it finishes).

The standalone solution seems to be better as it would not cause issues in case of running multiple instances as a cluster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants