Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remember to downcase on registration

  • Loading branch information...
commit 0c0444c078a8b88a48f2c972e5ad6f1eb22f4f86 1 parent 94c666e
Andrew Dahl adahl authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  app/controllers/devise/registrations_controller.rb
3  app/controllers/devise/registrations_controller.rb
View
@@ -68,6 +68,9 @@ def cancel
# temporary session data to the newly created user.
def build_resource(hash=nil)
hash ||= params[resource_name] || {}
+ if Devise.case_insensitive_keys
+ Devise.authentication_keys.each { |k| hash[k].try(:downcase!) }
+ end
self.resource = resource_class.new_with_session(hash, session)
end
Please sign in to comment.
Something went wrong with that request. Please try again.