diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-12-10 20:58:24 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-12-10 20:58:24 +0000 |
commit | 7e9c454478797cfaa4f5590188980ca045c9d5e5 (patch) | |
tree | ce9a0634e3b9e94af43b28f713a9e5f9e8977cc1 /app | |
parent | c00b8fd12e12820b827721e36984f1172362ebd9 (diff) | |
download | redmine-7e9c454478797cfaa4f5590188980ca045c9d5e5.tar.gz redmine-7e9c454478797cfaa4f5590188980ca045c9d5e5.zip |
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
Diffstat (limited to 'app')
-rw-r--r-- | app/models/auth_source.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/auth_source.rb b/app/models/auth_source.rb index 2f651ade5..47c121a13 100644 --- a/app/models/auth_source.rb +++ b/app/models/auth_source.rb @@ -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 |