refactor: 修改用户更新场景密码验证问题
This commit is contained in:
@@ -63,6 +63,8 @@ class SysUserValidate extends Validate
|
||||
// 更新校验场景
|
||||
public function sceneUpdate()
|
||||
{
|
||||
return $this->remove('repassword', 'requireWith:password|confirm:password');
|
||||
return $this->remove('password', 'require')
|
||||
->remove('salt', 'require')
|
||||
->remove('repassword', 'requireWith:password|confirm:password');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user