Skip to content

Commit

Permalink
Update app/models/user.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
simi committed Nov 13, 2023
1 parent b12e92c commit 895ce4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def self.authenticate(who, password)
end

def self.find_by_email(email)
find_by("lower(email) = ?", email.downcase)
find_by("lower(email) = lower(?)", email)
end

def self.find_by_slug!(slug)
Expand Down

0 comments on commit 895ce4e

Please sign in to comment.