]> source.dussan.org Git - redmine.git/commitdiff
Increase email address length limit from 60 to 254 (#36825).
authorGo MAEDA <maeda@farend.jp>
Wed, 23 Mar 2022 15:26:59 +0000 (15:26 +0000)
committerGo MAEDA <maeda@farend.jp>
Wed, 23 Mar 2022 15:26:59 +0000 (15:26 +0000)
Contributed by Brice Beaumesnil.

git-svn-id: https://svn.redmine.org/redmine/trunk@21497 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/user.rb

index f898f9460c92459e9b8037d9f9673d22f6996f28..7ead1f8cb7ea507fef23bafdf86c523e688ff2b4 100644 (file)
@@ -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