mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 14:27:30 +00:00
reduce password forgot limit
This commit is contained in:
@@ -38,7 +38,7 @@ const authLimit = rateLimit({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// 50 requests per 1 hour
|
// 5 requests per 1 hour
|
||||||
export const passwordLimiter = rateLimit({
|
export const passwordLimiter = rateLimit({
|
||||||
store: new MongoStore({
|
store: new MongoStore({
|
||||||
uri: process.env.MONGO_URL,
|
uri: process.env.MONGO_URL,
|
||||||
@@ -47,7 +47,7 @@ export const passwordLimiter = rateLimit({
|
|||||||
collectionName: "expressRateRecords-passwordLimiter",
|
collectionName: "expressRateRecords-passwordLimiter",
|
||||||
}),
|
}),
|
||||||
windowMs: 1000 * 60 * 60,
|
windowMs: 1000 * 60 * 60,
|
||||||
max: 50,
|
max: 5,
|
||||||
standardHeaders: true,
|
standardHeaders: true,
|
||||||
legacyHeaders: false,
|
legacyHeaders: false,
|
||||||
keyGenerator: (req, res) => {
|
keyGenerator: (req, res) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user