Project

General

Profile

« Previous | Next » 

Revision 977

Fixed: 'LDAP account password is too long' error when leaving the field empty on creation.

View differences:

trunk/app/models/auth_source.rb
20 20
  
21 21
  validates_presence_of :name
22 22
  validates_uniqueness_of :name
23
  validates_length_of :name, :host, :account_password, :maximum => 60
23
  validates_length_of :name, :host, :maximum => 60
24
  validates_length_of :account_password, :maximum => 60, :allow_nil => true
24 25
  validates_length_of :account, :base_dn, :maximum => 255
25 26
  validates_length_of :attr_login, :attr_firstname, :attr_lastname, :attr_mail, :maximum => 30
26 27

  

Also available in: Unified diff