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:

config/initializers/foreman.rb
Puppet.parse_config
$puppet = Puppet.settings.instance_variable_get(:@values) if Rails.env == "test"
SETTINGS[:login] ||= SETTINGS[:ldap]
# Add an empty method to nil. Now no need for if x and x.empty?. Just x.empty?
class NilClass
def empty?

Also available in: Unified diff