UserCheck.php 482 B

1234567891011121314151617181920212223
  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\acctconnect\validate;
  8. use think\Validate;
  9. class UserCheck extends Validate
  10. {
  11. protected $rule = [
  12. 'username' => 'require',
  13. 'pwd' => 'require',
  14. ];
  15. protected $message = [
  16. 'username.require' => '用户名不能为空',
  17. 'password.require' => '密码不能为空',
  18. ];
  19. }