From 3142eb76dc2af77090a6eff25a0d899b1d3cb381 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 22 Feb 2016 15:55:48 +0800 Subject: [PATCH] Revert "FIX: find_by_attribute method in Rails 4.5 is case insensitive." This reverts commit 2af587005bc639f6b41bfafd7e4cbf5736222086. --- app/models/discourse_single_sign_on.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/discourse_single_sign_on.rb b/app/models/discourse_single_sign_on.rb index 492e4a704..894d545ad 100644 --- a/app/models/discourse_single_sign_on.rb +++ b/app/models/discourse_single_sign_on.rb @@ -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