class Users::LoginForm
  include ActiveModel::Model

  attr_accessor :password, :login

  validates :login, presence: true
  validates :password, presence: true, length: { minimum: 6, maximum: 30 }, format: { with: CustomRegexp::LOGIN_PASSWORD, message: "6~30位，支持字母数字和符号" }
end