diff options
author | Go MAEDA <maeda@farend.jp> | 2023-08-27 08:59:33 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-08-27 08:59:33 +0000 |
commit | 937124443caff1675f5719a6bb6b77ec6941648a (patch) | |
tree | d583c9d10304af88d8cf9c9b2aff6fdc635a4130 /app/models/user.rb | |
parent | 4e0bb4990ca4422c0d54b4cf1707a4025989b64f (diff) | |
download | redmine-937124443caff1675f5719a6bb6b77ec6941648a.tar.gz redmine-937124443caff1675f5719a6bb6b77ec6941648a.zip |
Raise the maximum length of the last name to 255 characters (#37679).
Patch by Anthony Mallet.
git-svn-id: https://svn.redmine.org/redmine/trunk@22284 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 7180191d9..88e18b8d0 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -110,7 +110,8 @@ class User < Principal # Login must contain letters, numbers, underscores only validates_format_of :login, :with => /\A[a-z0-9_\-@\.]*\z/i validates_length_of :login, :maximum => LOGIN_LENGTH_LIMIT - validates_length_of :firstname, :lastname, :maximum => 30 + validates_length_of :firstname, :maximum => 30 + validates_length_of :lastname, :maximum => 255 validates_inclusion_of :mail_notification, :in => MAIL_NOTIFICATION_OPTIONS.collect(&:first), :allow_blank => true Setting::PASSWORD_CHAR_CLASSES.each do |k, v| validates_format_of :password, :with => v, :message => :"must_contain_#{k}", :allow_blank => true, :if => Proc.new {Setting.password_required_char_classes.include?(k)} |