Skip to content
Extraits de code Groupes Projets
Valider 1ffb7069 rédigé par Howard Lin's avatar Howard Lin
Parcourir les fichiers

User email lookup is now case insensitive

parent 5f29b77b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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
......
......@@ -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
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter