add missing valid pve token check to checkAuth
This commit is contained in:
1 parent
800033c6f8
commit
8f7ea51787
6 files changed
+42
-12
No files matched your search
@@ -115,6 +115,12 @@ router.post("/password", async (req, res) => {
|
||||
password: req.body.password
|
||||
};
|
||||
|
||||
// check auth
|
||||
const auth = await checkAuth(req.cookies, res);
|
||||
if (!auth) {
|
||||
return;
|
||||
}
|
||||
|
||||
const userObj = global.utils.getUserObjFromUsername(params.username);
|
||||
const newAttributes = {
|
||||
userpassword: params.password
|
||||
|
||||
Reference in new issue
Block a user