Skip to content

How To: Use case insensitive emails

ramontayag edited this page Mar 29, 2011 · 5 revisions

As of Devise 1.2.rc (see https://github.com/plataformatec/devise/pull/670), 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.

Replace :email with the authentication key that you use.

Clone this wiki locally