Permalink
Browse files

remember to downcase on registration

  • Loading branch information...
1 parent 94c666e commit 0c0444c078a8b88a48f2c972e5ad6f1eb22f4f86 @adahl adahl committed Nov 18, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 app/controllers/devise/registrations_controller.rb
@@ -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

0 comments on commit 0c0444c

Please sign in to comment.