|
|
@@ -258,11 +258,10 @@ class User extends Api
|
|
|
$new_pwd = $this->request->post("new_pwd", '', null);
|
|
|
$confirm_pwd = $this->request->post("confirm_pwd", '', null);
|
|
|
$rule = [
|
|
|
- 'mobile' => 'require|mobile',
|
|
|
+ 'mobile' => 'require|regex:^1\d{10}$',
|
|
|
'new_pwd' => 'require|regex:\S{6,30}',
|
|
|
'confirm_pwd' => 'require|regex:\S{6,30}|confirm:new_pwd',
|
|
|
];
|
|
|
-
|
|
|
$msg = [
|
|
|
'mobile.mobile' => __('Mobile is incorrect'),
|
|
|
'new_pwd.confirm' => __('Password and confirm password don\'t match')
|