From 750c5e89fb09942ff7fb5f9ab75e695a2f2b8834 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Wed, 23 Mar 2022 15:26:59 +0000 Subject: [PATCH] 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 --- app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5