From f8b207e563794ba74efafc5ebc78ee1f5a460d8e Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Wed, 10 May 2017 10:29:20 -0600 Subject: [PATCH] Return a meaningful error --- services/passport.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/passport.js b/services/passport.js index fd56a8c86..467605a1a 100644 --- a/services/passport.js +++ b/services/passport.js @@ -56,7 +56,7 @@ const HandleAuthPopupCallback = (req, res, next) => (err, user) => { } if (!user) { - return res.render('auth-callback', {auth: JSON.stringify({err, data: null})}); + return res.render('auth-callback', {auth: JSON.stringify({err: errors.ErrNotAuthorized, data: null})}); } // Generate the token to re-issue to the frontend.