User email lookup is now case insensitive

This commit is contained in:
Howard Lin 2011-10-01 19:50:39 -07:00
parent 5f29b77b1f
commit 1ffb706946
2 changed files with 5 additions and 1 deletions

View file

@ -146,6 +146,10 @@ Devise.setup do |config|
# config.navigational_formats = [:html, :iphone]
config.navigational_formats = [:"*/*", "*/*", :html, :mobile]
# Looks up user emails ignoring case
# for forgot password, sign up, sign in, etc
config.case_insensitive_keys = [:email]
# ==> Warden configuration
# If you want to use other strategies, that are not (yet) supported by Devise,
# you can configure them inside the config.warden block. The example below

View file

@ -18,7 +18,7 @@ Feature: Change password
Scenario: Reset my password
Given a user with email "forgetful@users.net"
Given I am on the new user password page
And I fill in "Email" with "forgetful@users.net"
And I fill in "Email" with "Forgetful@users.net"
And I press "Send me reset password instructions"
Then I should see "You will receive an email with instructions"
And I follow the "Change my password" link from the last sent email