12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- namespace app\common\validate;
- use think\Validate;
- /**
-
- *
-
- *
- * ----------------------------------------------------------------------------
- *
-
- * 验证器
- */
- class Membersecurity extends Validate
- {
- protected $rule = [
- 'email' => 'email',
- 'password' => 'require',
- 'confirm_password' => 'require',
- 'mobile' => 'require',
- 'vcode' => 'require',
- ];
- protected $message = [
- 'email.email' => '请正确填写邮箱',
- 'password.require' => '请正确输入密码',
- 'confirm_password.require' => '请正确输入确认密码',
- 'mobile.require' => '请正确填写手机号',
- 'vcode.require' => '请正确填写手机验证码',
- ];
- protected $scene = [
- 'send_bind_email' => ['email'],
- 'modify_pwd' => ['password', 'confirm_password'],
- 'modify_paypwd' => ['password', 'confirm_password'],
- 'modify_mobile' => ['mobile', 'vcode'],
- 'send_modify_mobile' => ['mobile'],
- ];
- }
|