This commit is contained in:
guange 2016-08-13 13:57:27 +08:00
parent fc74e714ee
commit 7b28d2d183
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ class User < Principal
# Prevents unauthorized assignments # Prevents unauthorized assignments
attr_protected :login, :admin, :password, :password_confirmation, :hashed_password attr_protected :login, :admin, :password, :password_confirmation, :hashed_password
LOGIN_LENGTH_LIMIT = 25 LOGIN_LENGTH_LIMIT = 30
MAIL_LENGTH_LIMIT = 60 MAIL_LENGTH_LIMIT = 60
validates_presence_of :login, :mail, :if => Proc.new { |user| !user.is_a?(AnonymousUser) } validates_presence_of :login, :mail, :if => Proc.new { |user| !user.is_a?(AnonymousUser) }