mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	fix: #7118, invoking autoLocale middleware on logout
Also: - firing client-side hook on header update - updating bootbox locale on header update
This commit is contained in:
		| @@ -483,6 +483,7 @@ authenticationController.logout = function (req, res, next) { | ||||
| 		function (next) { | ||||
| 			plugins.fireHook('static:user.loggedOut', { req: req, res: res, uid: req.uid }, next); | ||||
| 		}, | ||||
| 		async.apply(middleware.autoLocale, req, res), | ||||
| 		function () { | ||||
| 			// Force session check for all connected socket.io clients with the same session id | ||||
| 			sockets.in('sess_' + req.sessionID).emit('checkSession', 0); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user