Quellcode durchsuchen

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

git-svn-id: http://redmine.rubyforge.org/svn/trunk@977 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/0.6.2
Jean-Philippe Lang vor 16 Jahren
Ursprung
Commit
7e9c454478
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2
    1
      app/models/auth_source.rb

+ 2
- 1
app/models/auth_source.rb Datei anzeigen

@@ -20,7 +20,8 @@ class AuthSource < ActiveRecord::Base
validates_presence_of :name
validates_uniqueness_of :name
validates_length_of :name, :host, :account_password, :maximum => 60
validates_length_of :name, :host, :maximum => 60
validates_length_of :account_password, :maximum => 60, :allow_nil => true
validates_length_of :account, :base_dn, :maximum => 255
validates_length_of :attr_login, :attr_firstname, :attr_lastname, :attr_mail, :maximum => 30


Laden…
Abbrechen
Speichern