1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

Revert "remember to downcase on registration"

This reverts commit 0c0444c078.
This commit is contained in:
Andrew Dahl 2010-11-18 22:28:23 +01:00
parent 0c0444c078
commit 26b1bc4107

View file

@ -68,9 +68,6 @@ class Devise::RegistrationsController < ApplicationController
# temporary session data to the newly created user. # temporary session data to the newly created user.
def build_resource(hash=nil) def build_resource(hash=nil)
hash ||= params[resource_name] || {} 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) self.resource = resource_class.new_with_session(hash, session)
end end