@@ -20,7 +20,8 class AuthSource < ActiveRecord::Base | |||||
20 |
|
20 | |||
21 | validates_presence_of :name |
|
21 | validates_presence_of :name | |
22 | validates_uniqueness_of :name |
|
22 | validates_uniqueness_of :name | |
23 |
validates_length_of :name, :host, |
|
23 | validates_length_of :name, :host, :maximum => 60 | |
|
24 | validates_length_of :account_password, :maximum => 60, :allow_nil => true | |||
24 | validates_length_of :account, :base_dn, :maximum => 255 |
|
25 | validates_length_of :account, :base_dn, :maximum => 255 | |
25 | validates_length_of :attr_login, :attr_firstname, :attr_lastname, :attr_mail, :maximum => 30 |
|
26 | validates_length_of :attr_login, :attr_firstname, :attr_lastname, :attr_mail, :maximum => 30 | |
26 |
|
27 |
General Comments 0
You need to be logged in to leave comments.
Login now