# File lib/merb-auth-more/mixins/bcrypt_user.rb, line 49 49: def authenticated?(password) 50: bcrypt_password == password 51: end
# File lib/merb-auth-more/mixins/bcrypt_user.rb, line 53 53: def bcrypt_password 54: @bcrypt_password ||= BCrypt::Password.new(crypted_password) 55: end
# File lib/merb-auth-more/mixins/bcrypt_user.rb, line 61 61: def encrypt_password 62: return if password.blank? 63: cost = Merb::Plugins.config[:"merb-auth"][:bcrypt_cost] || BCrypt::Engine::DEFAULT_COST 64: self.crypted_password = BCrypt::Password.create(password, :cost => cost) 65: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.