From 4fa923eb417aeb0bc2e01d6917fc56962072a068 Mon Sep 17 00:00:00 2001 From: Esteban Monge Date: Mon, 6 Nov 2017 12:50:58 -0600 Subject: [PATCH] Fixed auth.js verify account --- lib/auth.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/auth.js b/lib/auth.js index a940c61..56b6881 100644 --- a/lib/auth.js +++ b/lib/auth.js @@ -38,8 +38,8 @@ function Auth(configuration) { var user_email = body.emails[0]; - //if (user_email == controller.config.allowed_admin) { - if (true) { + if (user_email == controller.config.allowed_admin) { + //if (true) { var jwt_token = jwt.sign(user_email, controller.config.token_secret); res.setHeader('Content-Type', 'application/json'); res.send(JSON.stringify({ 'status': 'success', 'access_token': jwt_token }));