Files

Merb::Authentication::Mixins::SaltedUser::InstanceMethods

Public Instance Methods

authenticated?(password) click to toggle source
    # File lib/merb-auth-more/mixins/salted_user.rb, line 58
58:         def authenticated?(password)
59:           crypted_password == encrypt(password)
60:         end
encrypt(password) click to toggle source
    # File lib/merb-auth-more/mixins/salted_user.rb, line 62
62:         def encrypt(password)
63:           self.class.encrypt(password, salt)
64:         end
encrypt_password() click to toggle source
    # File lib/merb-auth-more/mixins/salted_user.rb, line 70
70:         def encrypt_password
71:           return if password.blank?
72:           self.salt = Digest::SHA1.hexdigest("--#{Time.now.to_s}--#{Merb::Authentication::Strategies::Basic::Base.login_param}--") if salt.blank?
73:           self.crypted_password = encrypt(password)
74:         end
password_required?() click to toggle source
    # File lib/merb-auth-more/mixins/salted_user.rb, line 66
66:         def password_required?
67:           crypted_password.blank? || !password.blank?
68:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.