解析服务器自定义更改密码不起作用

Parse server custom change password not working

我编写了一个函数来更改 Parse Server 中用户的密码。 这在 return 中更改成功但不更新 MongoDB.Not 中的密码只是密码曾经配置文件数据未更新。谁能指出我做错了什么?

function changePassword(req, res) {
    const _params      = req.params;
    const _user        = req.user;
    const _password    = _params.password;
    _user.setPassword(_password);
    _user.save();
    res.success("password updated");
}

_user.save(null, {useMasterKey:true});