Add session handling and optional reCaptcha support

This commit is contained in:
2023-09-29 20:58:16 -04:00
parent 7b94f6aad5
commit 3439a6cabe
11 changed files with 268 additions and 14 deletions

13
bin/www
View File

@@ -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) {