This commit is contained in:
Hafiz
2025-08-12 12:28:10 -05:00
parent a0b179561b
commit cd06148422

View File

@@ -16,7 +16,11 @@ export function loginRes (user, req, res) {
if (user.auth.blocked) { if (user.auth.blocked) {
throw new NotAuthorized(res.t( throw new NotAuthorized(res.t(
'accountSuspended', 'accountSuspended',
{ communityManagerEmail: COMMUNITY_MANAGER_EMAIL, userId: user._id, username: user.auth.local.username }, {
communityManagerEmail: COMMUNITY_MANAGER_EMAIL,
userId: user._id,
username: user.auth.local.username,
},
)); ));
} }
const urlPath = url.parse(req.url).pathname; const urlPath = url.parse(req.url).pathname;