From 1f9bca6641453d62350e5fb3b9770e7c131f2699 Mon Sep 17 00:00:00 2001 From: sundowndev Date: Fri, 16 Nov 2018 17:32:18 +0100 Subject: [PATCH] HTTP code --- app/validation/auth/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/validation/auth/auth.js b/app/validation/auth/auth.js index 2e6c002..1ff58b4 100644 --- a/app/validation/auth/auth.js +++ b/app/validation/auth/auth.js @@ -30,7 +30,7 @@ module.exports = (req, res, next) => { }, (QueryError, count) => { if (count !== 1) { return next({ - status: 403, + status: 401, message: 'Your session is invalid. Please try sign in again.', error: [], });