X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/37bd2971b49da9364fe5dd25415e97e38b34abd7..84f3668fc4c49f4d3d6faa89990aed5e03b8592d:/app/models/user.rb diff --git a/app/models/user.rb b/app/models/user.rb index 1a1279042..589546e2d 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -25,9 +25,7 @@ class User < ActiveRecord::Base end def self.authenticate(email, passwd) - find_first([ "email = ? AND pass_crypt =?", - email, - Digest::MD5.hexdigest(passwd) ]) + find_first([ "email = ? AND pass_crypt =?", email, Digest::MD5.hexdigest(passwd) ]) end private