From: Go MAEDA Date: Wed, 23 Mar 2022 15:26:59 +0000 (+0000) Subject: Increase email address length limit from 60 to 254 (#36825). X-Git-Tag: 5.0.0~11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=750c5e89fb09942ff7fb5f9ab75e695a2f2b8834;p=redmine.git Increase email address length limit from 60 to 254 (#36825). Contributed by Brice Beaumesnil. git-svn-id: https://svn.redmine.org/redmine/trunk@21497 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/user.rb b/app/models/user.rb index f898f9460..7ead1f8cb 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -103,7 +103,7 @@ class User < Principal attr_accessor :remote_ip LOGIN_LENGTH_LIMIT = 60 - MAIL_LENGTH_LIMIT = 60 + MAIL_LENGTH_LIMIT = 254 validates_presence_of :login, :firstname, :lastname, :if => Proc.new {|user| !user.is_a?(AnonymousUser)} validates_uniqueness_of :login, :if => Proc.new {|user| user.login_changed? && user.login.present?}, :case_sensitive => false