From 111724c8e762af3302f0c902feea7a1f10ba58b8 Mon Sep 17 00:00:00 2001 From: Esther Date: Wed, 1 Jul 2020 12:20:30 +0100 Subject: [PATCH] Fixed contact backend bug --- routes/contact.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/contact.js b/routes/contact.js index 685552f..e99b2dd 100644 --- a/routes/contact.js +++ b/routes/contact.js @@ -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}})