mirror of
				https://github.com/KevinMidboe/zoff.git
				synced 2025-10-29 18:00:23 +00:00 
			
		
		
		
	Added expires option for mongo_configs
This commit is contained in:
		| @@ -45,7 +45,7 @@ app.use(session({ | |||||||
|       host: mongo_db_cred.host, |       host: mongo_db_cred.host, | ||||||
|       port: 27017, |       port: 27017, | ||||||
|       collection: 'sessions', |       collection: 'sessions', | ||||||
|       expire: 86400 |       expire: mongo_db_cred.expire | ||||||
|   }) |   }) | ||||||
| })); // session secret | })); // session secret | ||||||
| app.use(passport.initialize()); | app.use(passport.initialize()); | ||||||
|   | |||||||
| @@ -4,6 +4,7 @@ var mongo_config = { | |||||||
|     users: 'users', |     users: 'users', | ||||||
|     host: 'localhost', |     host: 'localhost', | ||||||
|     port: '27017', |     port: '27017', | ||||||
|  |     expire: 86400, | ||||||
| }; | }; | ||||||
|  |  | ||||||
| module.exports = mongo_config; | module.exports = mongo_config; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user