mirror of
https://github.com/aurora-dot/pastel.codes.git
synced 2024-12-22 06:42:20 +00:00
Fixed contact backend bug
This commit is contained in:
parent
75c7000be9
commit
111724c8e7
@ -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}})
|
||||
|
Loading…
Reference in New Issue
Block a user