# File app/models/user.rb, line 54 def self.login(email, password) hashed_password = hash_password(password || "") find(:first, :conditions => ["email = ? and hashed_password = ?", email, hashed_password]) end