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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Database trigger to remove user from database #2512

Open
1 task
cduhn17 opened this issue Feb 7, 2024 · 0 comments
Open
1 task

Add Database trigger to remove user from database #2512

cduhn17 opened this issue Feb 7, 2024 · 0 comments
Labels
Database Changes to table models.

Comments

@cduhn17
Copy link
Contributor

cduhn17 commented Feb 7, 2024

馃挕 Summary

What is the work, as a high-level summary?

There are inactive users who remain in the database, and we are managing user authentications based on the lastLoggedIn timestamp. We aim to implement a database trigger to remove users from the database if their account creation date exceeds 90 days without any login activity.

Why does this work belong in this project?

This initiative aligns with our strategy of enforcing user restrictions based on login activity, as outlined in issue #2458.

Implementation Notes

Develop a database trigger that compares today's date against the user's creation date. If the duration since the creation date has exceeded 90 days without login activity, the user should be removed from the database.

Acceptance Criteria

How do we know when this work is done?

  • A user is automatically removed from the users table when the time since their account creation exceeds 90 days without any recorded login activity.
@cduhn17 cduhn17 added the Database Changes to table models. label Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Database Changes to table models.
Projects
None yet
Development

No branches or pull requests

1 participant