fix: return a user object, not an array of user objects (in v3 login check route)

v1.18.x
Julian Lam 4 years ago
parent 8c86f5bcec
commit 97d678fd2a

@ -38,7 +38,7 @@ Utilities.login = (req, res) => {
if (ok) {
const userData = await user.getUsers([uid], uid);
helpers.formatApiResponse(200, res, userData);
helpers.formatApiResponse(200, res, userData.pop());
} else {
helpers.formatApiResponse(403, res);
}

Loading…
Cancel
Save