mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-06 22:07:58 +03:00
UHGHGHGH
This commit is contained in:
@@ -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.`,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user