Project

General

Profile

« Previous | Next » 

Revision 7a4ec5cf

Added by Paul Kelly almost 14 years ago

  • ID 7a4ec5cf7cd482e4adac225312aa02dbe82ff561

Fixes #145 - Added AuthSourceInternal

Added a password setting facility to the user class for AuthSourceInternal
Switched to SHA1
Changed :ldap to :login
Applied numerous fixes from Ohad Levy
Fixed malformed user page
Switched attr_accessible to attr_protected
Swiched prepare_password to a before_validation, otherwise validations will fail
Lots of test fixes!

View differences:

app/models/host_mailer.rb
def error_state(report)
host = report.host
email = host.owner.recipients if SETTINGS[:ldap] and not host.owner.nil?
email = host.owner.recipients if SETTINGS[:login] and not host.owner.nil?
email = SETTINGS[:administrator] if email.empty?
raise "unable to find recipients" if email.empty?
recipients email

Also available in: Unified diff