mirror of
				https://github.com/aurora-dot/pastel.codes.git
				synced 2025-10-31 15:11:35 +00:00 
			
		
		
		
	Fixed contact backend bug
This commit is contained in:
		| @@ -6,7 +6,7 @@ var router = express.Router(); | ||||
|  | ||||
| const contact_rate_limit = rate_limit({ | ||||
|     windowMs: 10 * 60 * 1000, // 10 minutes | ||||
|     max: 1, // limit each IP to 10 requests per windowMs | ||||
|     max: 5, // limit each IP to 10 requests per windowMs | ||||
|     message: "Too many contact requests, try again later.", | ||||
|     handler: function(req, res /*, next*/) { | ||||
|         res.render('error', {title:"Error", message: "Too many contact requests, try again later.", error: {status: null}}) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user