Memberconnect.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace app\common\validate;
  3. use think\Validate;
  4. /**
  5. * ============================================================================
  6. *
  7. * ============================================================================
  8. * 版权所有 2014-2028 浙江惠利玛产业互联网有限公司,并保留所有权利。
  9. * 网站地址: https://www.valimart.net/
  10. * ----------------------------------------------------------------------------
  11. *
  12. * ============================================================================
  13. * 验证器
  14. */
  15. class Memberconnect extends Validate
  16. {
  17. protected $rule = [
  18. 'new_password'=>'require|length:6,20',
  19. 'confirm_password'=>'require|confirm:new_password',
  20. ];
  21. protected $message = [
  22. 'new_password.require'=>'新密码为必填|密码长度必须为6-20之间',
  23. 'new_password.length'=>'新密码为必填|密码长度必须为6-20之间',
  24. 'confirm_password.require'=>'新密码与确认密码不相同,请从重新输入',
  25. 'confirm_password.confirm'=>'新密码与确认密码不相同,请从重新输入',
  26. ];
  27. protected $scene = [
  28. 'qqunbind' => ['new_password', 'confirm_password'],
  29. 'sinaunbind' => ['new_password', 'confirm_password'],
  30. 'weixinunbind' => ['new_password', 'confirm_password'],
  31. ];
  32. }