Sha256: 7a91a2491d71c6488cdc55858ae6bd80754669cfc277b234e9ba9ca69a2905ce
Contents?: true
Size: 371 Bytes
Versions: 19
Compression:
Stored size: 371 Bytes
Contents
class Caboose::Authenticator def authenticate(username, password) pass = Digest::SHA1.hexdigest(Caboose::salt + password) user = Caboose::User.where(:username => username, :password => pass).first if (user.nil?) user = User.where(:email => username, :password => pass).first end return false if user.nil? return user end end
Version data entries
19 entries across 19 versions & 1 rubygems