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

Add ability to deactivate user accounts #129

Closed
sman591 opened this issue Feb 28, 2019 · 0 comments
Closed

Add ability to deactivate user accounts #129

sman591 opened this issue Feb 28, 2019 · 0 comments

Comments

@sman591
Copy link
Member

sman591 commented Feb 28, 2019

Admins can be associated to trackable tag events. As a result, trying to delete an admin after they've logged events causes an (expected) constraint error:

Cannot delete or update a parent row: a foreign key constraint fails (brickhack-prod.trackable_events...

We definitely don't want to end up with a database of broken associations.

Instead, I think the best solution to this would be to add the ability to deactivate a user's account, disallowing them from signing in.

This StackOverflow post has some good context on how Devise can easily support this: https://stackoverflow.com/questions/6004216/devise-how-do-i-forbid-certain-users-from-signing-in

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

No branches or pull requests

1 participant