Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

remember to downcase on registration

  • Loading branch information...
commit 0c0444c078a8b88a48f2c972e5ad6f1eb22f4f86 1 parent 94c666e
Andrew Dahl adahl authored

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. +3 0  app/controllers/devise/registrations_controller.rb
3  app/controllers/devise/registrations_controller.rb
@@ -68,6 +68,9 @@ def cancel
68 68 # temporary session data to the newly created user.
69 69 def build_resource(hash=nil)
70 70 hash ||= params[resource_name] || {}
  71 + if Devise.case_insensitive_keys
  72 + Devise.authentication_keys.each { |k| hash[k].try(:downcase!) }
  73 + end
71 74 self.resource = resource_class.new_with_session(hash, session)
72 75 end
73 76

0 comments on commit 0c0444c

Please sign in to comment.
Something went wrong with that request. Please try again.