Project

General



Profile

« Previous | Next » 

Revision 948

Changed the maximum length of LDAP account to 255 characters.
Added length validations on AuthSource model.

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
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
trunk/db/migrate/084_change_auth_sources_account_limit.rb
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
0 10

  

Also available in: Unified diff