Skip to content

How To: Use case insensitive emails

panozzaj edited this page Feb 14, 2011 · 5 revisions

As https://github.com/plataformatec/devise/pull/670 shows, you can make your devise users' emails case-insensitive by changing config/initializers/devise.rb to use

...
config.case_insensitive_keys = [:email]
...

This works for forgot password, sign up, sign in, etc.

Clone this wiki locally