From b0a258c7c03c3ed99b9b0dc8d1923ef890bfce99 Mon Sep 17 00:00:00 2001 From: AnveshNalimela Date: Tue, 24 Sep 2024 23:35:39 +0530 Subject: [PATCH] Removed Duplicate sessions --- app.js | 2 -- config/config.json | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app.js b/app.js index 27b015d..e57611b 100644 --- a/app.js +++ b/app.js @@ -24,8 +24,6 @@ app.use(session({ secret: "my-super-key 1234567890", cookie: { maxAge: 24 * 60 * app.use(passport.initialize()); app.use(passport.session()) -app.use(passport.initialize()); -app.use(passport.session()) app.use(require('express-session')({ secret: 'your-secret-key', resave: false, diff --git a/config/config.json b/config/config.json index 5e89884..5119485 100644 --- a/config/config.json +++ b/config/config.json @@ -1,14 +1,14 @@ { "development": { "username": "postgres", - "password": "postgres", + "password": "anvesh", "database": "wd-lms-dev", "host": "127.0.0.1", "dialect": "postgres" }, "test": { "username": "postgres", - "password": "postgres", + "password": "anvesh", "database": "wd-lms-test", "host": "127.0.0.1", "dialect": "postgres"