@@ -0,0 +1,9 | |||
|
1 | class ChangeAuthSourcesAccountLimit < ActiveRecord::Migration | |
|
2 | def self.up | |
|
3 | change_column :auth_sources, :account, :string | |
|
4 | end | |
|
5 | ||
|
6 | def self.down | |
|
7 | change_column :auth_sources, :account, :string, :limit => 60 | |
|
8 | end | |
|
9 | end |
@@ -20,6 +20,9 class AuthSource < ActiveRecord::Base | |||
|
20 | 20 | |
|
21 | 21 | validates_presence_of :name |
|
22 | 22 | validates_uniqueness_of :name |
|
23 | validates_length_of :name, :host, :account_password, :maximum => 60 | |
|
24 | validates_length_of :account, :base_dn, :maximum => 255 | |
|
25 | validates_length_of :attr_login, :attr_firstname, :attr_lastname, :attr_mail, :maximum => 30 | |
|
23 | 26 | |
|
24 | 27 | def authenticate(login, password) |
|
25 | 28 | end |
General Comments 0
You need to be logged in to leave comments.
Login now