mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 19:15:58 +01:00 
			
		
		
		
	added artificial delay on reset route so that the heat death of the universe will arrive before you manage to identify a valid reset code
This commit is contained in:
		| @@ -181,3 +181,8 @@ middleware.processTimeagoLocales = function (req, res, next) { | ||||
| 		}, | ||||
| 	], next); | ||||
| }; | ||||
|  | ||||
| middleware.delayLoading = function (req, res, next) { | ||||
| 	// Introduces an artificial delay during load so that brute force attacks are effectively mitigated | ||||
| 	setTimeout(next, 1000); | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user