various fixes

This commit is contained in:
Steve Coast 2006-08-18 17:54:41 +00:00
parent 758beeb2e8
commit c8f9387420
6 changed files with 158 additions and 29 deletions

View file

@ -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