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

ActiveRecord - Downcases emails for login and corrects email used in authenticate method #1262

Closed
wants to merge 1 commit into from

Conversation

wakatara
Copy link

Fix for issue 1261: #1261

All sorts of problems happen if Account emails are not stored downcased or someone tries to login expecting their KevinZAbel@example.com to work.

I force the Account model to callback to downcase the email and then also changed the authenticate model to set the incoming email from params to downcase for comparison.

…nd forces emails in accounts to be downcased on save.
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

Successfully merging this pull request may close these issues.

None yet

2 participants