Fixed contact backend bug

pull/1/head
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
1 changed files with 1 additions and 1 deletions

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