mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	supply callback to req.session.destroy
This commit is contained in:
		| @@ -418,8 +418,11 @@ authenticationController.logout = function (req, res, next) { | ||||
| 		}, | ||||
| 		function (next) { | ||||
| 			req.logout(); | ||||
| 			req.session.destroy(); | ||||
|  | ||||
| 			req.session.destroy(function (err) { | ||||
| 				next(err); | ||||
| 			}); | ||||
| 		}, | ||||
| 		function (next) { | ||||
| 			user.setUserField(req.uid, 'lastonline', Date.now() - 300000, next); | ||||
| 		}, | ||||
| 		function (next) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user