fix missing return value in user password set

This commit is contained in:
Arthur Lu 2024-02-23 22:27:28 +00:00
parent 06fd99aca5
commit d61e8377e0

View File

@ -125,7 +125,7 @@ router.post("/password", async (req, res) => {
};
const response = await handler.setUser(userID, newAttributes, req.cookies);
if (response.ok) {
res.status(response.status).send();
res.status(response.status).send(response.data);
}
else {
res.status(response.status).send({ error: response.data.error });