diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-11-24 12:52:29 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-11-24 12:52:29 +0000 |
commit | fde4a42e2aa5327c81d159d5f79026e5d0246c08 (patch) | |
tree | 5e0eb454f86a848c55a3bb780d747c89f0d3f23e /app/models/user.rb | |
parent | 29b3614bcb759214bb1aba77c27ac11c8ef6b15b (diff) | |
download | redmine-fde4a42e2aa5327c81d159d5f79026e5d0246c08.tar.gz redmine-fde4a42e2aa5327c81d159d5f79026e5d0246c08.zip |
Removed the 12 characters limit on passwords.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@927 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 93b73dd7a..5297b31b0 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -46,8 +46,7 @@ class User < ActiveRecord::Base validates_length_of :firstname, :lastname, :maximum => 30 validates_format_of :mail, :with => /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i, :allow_nil => true validates_length_of :mail, :maximum => 60, :allow_nil => true - # Password length between 4 and 12 - validates_length_of :password, :in => 4..12, :allow_nil => true + validates_length_of :password, :minimum => 4, :allow_nil => true validates_confirmation_of :password, :allow_nil => true validates_associated :custom_values, :on => :update |