|
|
@@ -333,9 +333,9 @@ class User extends \common\components\ActiveRecord
|
|
|
return [ 'code' => 1000, 'type' => $scenario , 'message' => '登录密码中需要包含数字、大写字母、小写字母、特殊字符至少三种' ];
|
|
|
}
|
|
|
|
|
|
- // 判断有三位或以上重复性
|
|
|
- if(preg_match('/(\w)*(\w)\2{2}(\w)*/',$password)) {
|
|
|
- return [ 'code' => 1000, 'type' => $scenario , 'message' => '登录密码中数字、大写字母、小写字母不能连续重复三个或以上' ];
|
|
|
+ // 判断有三位以上重复性
|
|
|
+ if(preg_match('/(\w)*(\w)\1{2}(\w)*/',$password)) {
|
|
|
+ return [ 'code' => 1000, 'type' => $scenario , 'message' => '登录密码中数字、大写字母、小写字母不能连续重复三个以上' ];
|
|
|
}
|
|
|
|
|
|
// 判断密码中不能出现登录账号
|