mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	parseInt uid received from req.body._uid or req.query._uid
This commit is contained in:
		| @@ -37,7 +37,7 @@ module.exports = function (middleware) { | |||||||
| 			const loginAsync = util.promisify(req.login).bind(req); | 			const loginAsync = util.promisify(req.login).bind(req); | ||||||
| 			await loginAsync(user, { keepSessionInfo: true }); | 			await loginAsync(user, { keepSessionInfo: true }); | ||||||
| 			await controllers.authentication.onSuccessfulLogin(req, user.uid); | 			await controllers.authentication.onSuccessfulLogin(req, user.uid); | ||||||
| 			req.uid = user.uid; | 			req.uid = parseInt(user.uid, 10); | ||||||
| 			req.loggedIn = req.uid > 0; | 			req.loggedIn = req.uid > 0; | ||||||
| 			return true; | 			return true; | ||||||
| 		} | 		} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user