# File lib/merb-auth-more/mixins/bcrypt_user.rb, line 49 def authenticated?(password) bcrypt_password == password end
# File lib/merb-auth-more/mixins/bcrypt_user.rb, line 53 def bcrypt_password @bcrypt_password ||= BCrypt::Password.new(crypted_password) end
# File lib/merb-auth-more/mixins/bcrypt_user.rb, line 61 def encrypt_password return if password.blank? cost = Merb::Plugins.config[:"merb-auth"][:bcrypt_cost] || BCrypt::Engine::DEFAULT_COST self.crypted_password = BCrypt::Password.create(password, :cost => cost) end
Generated with the Darkfish Rdoc Generator 2.