# File lib/merb-auth-more/mixins/salted_user.rb, line 58 58: def authenticated?(password) 59: crypted_password == encrypt(password) 60: end
# File lib/merb-auth-more/mixins/salted_user.rb, line 62 62: def encrypt(password) 63: self.class.encrypt(password, salt) 64: end
# 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
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.