Contributed by Brice Beaumesnil.
git-svn-id: https://svn.redmine.org/redmine/trunk@21497
e93f8b46-1217-0410-a6f0-
8f06a7374b81
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