UserCheck.php 626 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2021 勾股工作室
  4. * @license https://opensource.org/licenses/Apache-2.0
  5. * @link https://www.gougucms.com
  6. */
  7. namespace app\admin\validate;
  8. use think\Validate;
  9. class UserCheck extends Validate
  10. {
  11. protected $rule = [
  12. 'username' => 'require',
  13. 'password' => 'require',
  14. 'captcha' => 'require|captcha',
  15. ];
  16. protected $message = [
  17. 'username.require' => '用户名不能为空',
  18. 'password.require' => '密码不能为空',
  19. 'captcha.require' => '验证码不能为空',
  20. 'captcha.captcha' => '验证码不正确',
  21. ];
  22. }