实名认证的姓名check

chromesetting
cxt 5 years ago
parent d345653e6c
commit 298068320a

@ -3,7 +3,7 @@ class Users::ApplyAuthenticationForm
attr_accessor :name, :show_realname, :id_number, :gender, :upload_image, :attachment_ids
validates :name, presence: true
validates :name, presence: true, length: { minimum: 2, maximum: 10 }, format: { with: CustomRegexp::LASTNAME, message: "2-10位中英文、数字" }
validate :validate_ID_number
validate :validate_attachment_ids

Loading…
Cancel
Save