From d61e8377e03ffe0dc48bf802a96399ddf9853861 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Fri, 23 Feb 2024 22:27:28 +0000 Subject: [PATCH] fix missing return value in user password set --- src/routes/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/auth.js b/src/routes/auth.js index bb22d91..323947a 100644 --- a/src/routes/auth.js +++ b/src/routes/auth.js @@ -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 });