User email lookup is now case insensitive
This commit is contained in:
parent
5f29b77b1f
commit
1ffb706946
2 changed files with 5 additions and 1 deletions
|
|
@ -146,6 +146,10 @@ Devise.setup do |config|
|
||||||
# config.navigational_formats = [:html, :iphone]
|
# config.navigational_formats = [:html, :iphone]
|
||||||
config.navigational_formats = [:"*/*", "*/*", :html, :mobile]
|
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
|
# ==> Warden configuration
|
||||||
# If you want to use other strategies, that are not (yet) supported by Devise,
|
# 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
|
# you can configure them inside the config.warden block. The example below
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ Feature: Change password
|
||||||
Scenario: Reset my password
|
Scenario: Reset my password
|
||||||
Given a user with email "forgetful@users.net"
|
Given a user with email "forgetful@users.net"
|
||||||
Given I am on the new user password page
|
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"
|
And I press "Send me reset password instructions"
|
||||||
Then I should see "You will receive an email with 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
|
And I follow the "Change my password" link from the last sent email
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue