mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 19:15:58 +01:00 
			
		
		
		
	feat: automatically unban users in onSuccessfulLogin
This allows write API (and probably SSO login) to go through unimpeded if a user's ban has expired. Closes nodebb/nodebb-plugin-write-api#126
This commit is contained in:
		| @@ -328,6 +328,7 @@ authenticationController.onSuccessfulLogin = async function (req, uid) { | ||||
| 		req.loggedIn = true; | ||||
| 		await meta.blacklist.test(req.ip); | ||||
| 		await user.logIP(uid, req.ip); | ||||
| 		await user.bans.unbanIfExpired([uid]); | ||||
|  | ||||
| 		req.session.meta = {}; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user