fix: Switch converted to Object Literal (#940)
* updating a switch into object literal and fixed a couple linter errors * added a comment about weird formatting * style: use lodash get * fix: pass eslint + puglint + jest
This commit is contained in:
committed by
Nicolas Giard
parent
2142b5f674
commit
0f9ddf1e5d
@@ -12,8 +12,8 @@ const bruteforce = new ExpressBrute(new BruteKnex({
|
||||
knex: WIKI.models.knex
|
||||
}), {
|
||||
freeRetries: 5,
|
||||
minWait: 5*60*1000, // 5 minutes
|
||||
maxWait: 60*60*1000, // 1 hour
|
||||
minWait: 5 * 60 * 1000, // 5 minutes
|
||||
maxWait: 60 * 60 * 1000, // 1 hour
|
||||
failCallback: (req, res, next) => {
|
||||
res.status(401).send('Too many failed attempts. Try again later.')
|
||||
}
|
||||
|
Reference in New Issue
Block a user