mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 11:37:14 +00:00
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
This commit is contained in:
parent
32abb15847
commit
750c5e89fb
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user