|
|
|
@ -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
|
|
|
|
|
|
|
|
|
|