From f9b2d2cedd1b669516328b98e23f0c2298581025 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 20 Sep 2016 22:45:14 +0200 Subject: Fix client peer dependencies --- server/middlewares/oauth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/middlewares/oauth.js') diff --git a/server/middlewares/oauth.js b/server/middlewares/oauth.js index 91a990509..08584c41c 100644 --- a/server/middlewares/oauth.js +++ b/server/middlewares/oauth.js @@ -23,7 +23,7 @@ function authenticate (req, res, next) { return res.sendStatus(500) } - if (res.statusCode === 401 || res.statusCode === 400) return res.end() + if (res.statusCode === 401 || res.statusCode === 400 || res.statusCode === 503) return res.end() return next() }) -- cgit v1.2.3 From c4403b29ad4db097af528a7f04eea07e0ed320d0 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sun, 2 Oct 2016 12:19:02 +0200 Subject: Server: remove useless hash affectations --- server/middlewares/oauth.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/middlewares/oauth.js') diff --git a/server/middlewares/oauth.js b/server/middlewares/oauth.js index 08584c41c..3a02b9b48 100644 --- a/server/middlewares/oauth.js +++ b/server/middlewares/oauth.js @@ -12,8 +12,8 @@ const oAuthServer = new OAuthServer({ }) const oAuth = { - authenticate: authenticate, - token: token + authenticate, + token } function authenticate (req, res, next) { -- cgit v1.2.3