Fix change password button active state on no errors

This commit is contained in:
Tuan Dang
2023-06-08 00:28:51 +01:00
+2 -2
View File
@@ -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) => {