mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-11 04:42:42 +00:00
Update server/app.js
Co-authored-by: Trevor Buckner <calculuschild@gmail.com>
This commit is contained in:
@@ -264,7 +264,8 @@ const isLocalEnvironment = config.get('local_environments').includes(nodeEnv);
|
|||||||
// Login
|
// Login
|
||||||
app.post('/login', (req, res)=>{
|
app.post('/login', (req, res)=>{
|
||||||
// Local only
|
// Local only
|
||||||
if(!localEnvironments.includes(nodeEnv)){
|
if(!isLocalEnvironment){
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user