AuthValidate.php 337 B

1234567891011121314151617181920
  1. <?php
  2. namespace app\admin\validate\auth;
  3. use support\Validate;
  4. class AuthValidate extends Validate
  5. {
  6. protected $rule = [
  7. 'username|用户名' => 'require|alphaDash',
  8. 'password|密码' => 'require',
  9. ];
  10. protected $message = [];
  11. protected $scene = [
  12. 'login' => ['username', 'password']
  13. ];
  14. }