mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-11-03 20:45:58 +01:00 
			
		
		
		
	Made the session cookie aware of the possible relative path (#4663)
This commit is contained in:
		@@ -62,6 +62,10 @@ module.exports = function(app) {
 | 
				
			|||||||
	if (nconf.get('secure')) {
 | 
						if (nconf.get('secure')) {
 | 
				
			||||||
		cookie.secure = true;
 | 
							cookie.secure = true;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
						
 | 
				
			||||||
 | 
						if (relativePath !== '') {
 | 
				
			||||||
 | 
							cookie.path = relativePath;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	app.use(session({
 | 
						app.use(session({
 | 
				
			||||||
		store: db.sessionStore,
 | 
							store: db.sessionStore,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user