This commit is contained in:
zkldi
2021-06-26 13:47:06 +01:00
parent 126edd89e4
commit e1f9657829
@@ -7,7 +7,7 @@ export const RequireLoggedInSession: RequestHandler = (req, res, next) => {
if (!req.session.tachi?.userID) {
logger.info(`Received unauthorised request from ${req.ip} from ${req.originalUrl}`);
return res.status(403).json({
return res.status(401).json({
success: false,
description: `You are not authorised to perform this action.`,
});