-
Notifications
You must be signed in to change notification settings - Fork 846
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
Fix bug letting already logged in users see login and forgot password forms #728
Conversation
The following validation *validates_each :username* was causing multiple actions that operate on a user to fail, throwing a 500 error. This was preventing the inactive-user user account from being created by *rake db:seed* as well as preventing the inactive-user user to reset their password.
The error was caused by *user1* trying to log in while *user* was already logged in.
…n/forgot_password
This reverts commit 4a8b75e.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall I think you have a good PR which just needs some minor changes.
Note that there is another PR which solves part of what this PR is solving at #727
Thomas, thanks for jumping in to guide this PR, I appreciate you working through it with arandomandy. |
Thanks for taking this on. It's satisfying to squash these small bugs. If you bring in @thomasdziedzic's suggestion for the logout test, this is ready to merge. |
Deployed this fix. Thanks for contributing so many, and thanks to @thomasdziedzic for puzzling out our test issue. |
No description provided.