From 84bc3d0be2509dea1fcf8da956138f53fefb2f11 Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Wed, 13 Apr 2022 14:37:11 +1200 Subject: [PATCH] Update server/app.js Co-authored-by: Trevor Buckner --- server/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/app.js b/server/app.js index 4451e89b7..3a40368ac 100644 --- a/server/app.js +++ b/server/app.js @@ -264,7 +264,8 @@ const isLocalEnvironment = config.get('local_environments').includes(nodeEnv); // Login app.post('/login', (req, res)=>{ // Local only - if(!localEnvironments.includes(nodeEnv)){ + if(!isLocalEnvironment){ + return; }