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

Case insensitive keys #670

Merged
5 commits merged into from
Nov 20, 2010
Merged

Case insensitive keys #670

5 commits merged into from
Nov 20, 2010

Conversation

adahl
Copy link
Contributor

@adahl adahl commented Nov 20, 2010

The included changes allow for case insensitive authentication keys. This is implemented as a configuration setting that specifies an array of keys that should be treated as case insensitive. The default is [ :email ].

This means that if a user signs up with [email protected] the user will be able to log in, reset password, unlock account, etc. with any casing of that email address (e.g. [email protected], [email protected]).

This is accomplished by downcasing all authentication keys in the case insensitive keys list upon creating a user and when authentication or finding a user.

  • Andrew

@josevalim
Copy link
Contributor

Applied, thanks Andrew! I hope you enjoyed contributing to Devise!

@ahamid
Copy link

ahamid commented Dec 7, 2010

hi guys, is this slated for a 1.1.6, or should I move to 1.2rc? thanks.

@josevalim
Copy link
Contributor

use 1.2.rc

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants