mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
v3: misc fixes
This commit is contained in:
@@ -29,7 +29,7 @@ export function authWithHeaders (optional = false) {
|
||||
if (user.auth.blocked) throw new NotAuthorized(res.t('accountSuspended', {userId: user._id}));
|
||||
|
||||
res.locals.user = user;
|
||||
// TODO use either session/cookie or headers, not both
|
||||
|
||||
req.session.userId = user._id;
|
||||
return next();
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user