Fixed contact backend bug

This commit is contained in:
Esther 2020-07-01 12:20:30 +01:00
parent 75c7000be9
commit 111724c8e7
No known key found for this signature in database
GPG Key ID: 162A307C5EBD40EA

View File

@ -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}})