mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: return a user object, not an array of user objects (in v3 login check route)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user