LoginValidate.php 437 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * @package merchant
  4. *
  5. * @author xaboy
  6. * @day 2020-03-26
  7. *
  8. *
  9. */
  10. namespace app\validate\admin;
  11. use think\Validate;
  12. class LoginValidate extends Validate
  13. {
  14. protected $failException = true;
  15. protected $rule = [
  16. 'account|账号' => 'require|min:4|max:32',
  17. 'password|密码' => 'require|min:6|max:16',
  18. 'code|验证码' => 'require|length:4',
  19. 'key|key' => 'require|max:64',
  20. ];
  21. }