Project

General

Profile

« Previous | Next » 

Revision 6874bbd9

Added by Paul Kelly about 14 years ago

  • ID 6874bbd96a2988d324bee75a00c288211556ba40

Fixes #232 - Removes AS from Users page

The password verification test has not yet been implemented but will get done in AuthSourceInternal fix
All tests now pass These tests now work whether settings[:ldap] is enabled or not
Plus whitespace fix

View differences:

app/models/user.rb
has_many :changes, :class_name => 'Audit', :as => :user
has_many :usergroups, :through => :usergroup_member
has_many :direct_hosts, :as => :owner, :class_name => "Host"
has_many :hosts
default_scope :order => "firstname"
validates_uniqueness_of :login, :message => "already exists"
validates_presence_of :login, :mail
......
# The text item to see in a select dropdown menu
def select_title
name + " (#{login})"
to_label + " (#{login})"
end
def self.try_to_login(login, password)

Also available in: Unified diff