Files

Merb::Authentication::Mixins::BCryptUser::InstanceMethods

Public Instance Methods

authenticated?(password) click to toggle source
    # File lib/merb-auth-more/mixins/bcrypt_user.rb, line 49
49:         def authenticated?(password)
50:           bcrypt_password == password
51:         end
bcrypt_password() click to toggle source
    # 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
encrypt_password() click to toggle source
    # 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
password_required?() click to toggle source
    # File lib/merb-auth-more/mixins/bcrypt_user.rb, line 57
57:         def password_required?
58:           crypted_password.blank? || !password.blank?
59:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.