Revert "FIX: find_by_attribute method in Rails 4.5 is case insensitive."

This reverts commit 2af587005b.
This commit is contained in:
Guo Xiang Tan 2016-02-22 15:55:48 +08:00
parent c852fb83d0
commit 3142eb76dc

View file

@ -81,7 +81,7 @@ class DiscourseSingleSignOn < SingleSignOn
private
def match_email_or_create_user(ip_address)
user = User.find_by(email: email)
user = User.find_by_email(email)
try_name = name.blank? ? nil : name
try_username = username.blank? ? nil : username