mirror of
https://github.com/Zandercraft/TechnicFlux.git
synced 2026-10-29 04:39:20 +00:00
Add session handling and optional reCaptcha support
This commit is contained in:
13
bin/www
13
bin/www
@@ -7,12 +7,13 @@ require('dotenv').config()
|
||||
|
||||
// Check if the .env config file is included.
|
||||
const required_variables = [
|
||||
process.env.MONGODB_CONN_STRING,
|
||||
process.env.ADMIN_USER,
|
||||
process.env.ADMIN_PASS,
|
||||
process.env.NAME,
|
||||
process.env.HOST,
|
||||
process.env.API_KEY
|
||||
process.env.MONGODB_CONN_STRING,
|
||||
process.env.ADMIN_USER,
|
||||
process.env.ADMIN_PASS,
|
||||
process.env.NAME,
|
||||
process.env.HOST,
|
||||
process.env.API_KEY,
|
||||
process.env.SESSION_KEY
|
||||
]
|
||||
for (let variable of required_variables) {
|
||||
if (variable === undefined) {
|
||||
|
||||
Reference in New Issue
Block a user