fix missing return value in user password set
This commit is contained in:
parent
fae79e4ab0
commit
67a17cfef0
@ -125,7 +125,7 @@ router.post("/password", async (req, res) => {
|
|||||||
};
|
};
|
||||||
const response = await handler.setUser(userID, newAttributes, req.cookies);
|
const response = await handler.setUser(userID, newAttributes, req.cookies);
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
res.status(response.status).send();
|
res.status(response.status).send(response.data);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
res.status(response.status).send({ error: response.data.error });
|
res.status(response.status).send({ error: response.data.error });
|
||||||
|
Loading…
Reference in New Issue
Block a user