mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Revert "FIX: find_by_attribute method in Rails 4.5 is case insensitive."
This reverts commit 2af587005b
.
This commit is contained in:
parent
c852fb83d0
commit
3142eb76dc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user