This commit is contained in:
nilsding 2015-01-01 17:59:24 +01:00
parent a70b7c5fdb
commit 5df705cdaa
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class User < ActiveRecord::Base
end
def self.find_first_by_auth_conditions(warden_conditions)
conditions = warden_conditions.dup.permit!
conditions = warden_conditions.dup
if login = conditions.delete(:login)
where(conditions).where(["lower(screen_name) = :value OR lower(email) = :value", { :value => login.downcase }]).first
else