mirror of
https://github.com/Foltik/Shimapan
synced 2024-11-30 22:41:47 -05:00
Remove hard coded value
This commit is contained in:
parent
5f2320a492
commit
685783f6a4
@ -101,8 +101,9 @@ router.post('/register',
|
|||||||
console.log(config.get('RateLimit'));
|
console.log(config.get('RateLimit'));
|
||||||
const loginLimiter = config.get('RateLimit.enable')
|
const loginLimiter = config.get('RateLimit.enable')
|
||||||
? rateLimit({
|
? rateLimit({
|
||||||
windowMs: 60 * 60 * 1000,//config.get('RateLimit.login.window') * 1000,
|
windowMs: config.get('RateLimit.login.window') * 1000,
|
||||||
max: 5,//config.get('RateLimit.login.max'),
|
max: config.get('RateLimit.login.max'),
|
||||||
|
skipSuccessfulRequests: true
|
||||||
})
|
})
|
||||||
: (req, res, next) => { next(); };
|
: (req, res, next) => { next(); };
|
||||||
const loginProps = [
|
const loginProps = [
|
||||||
|
Loading…
Reference in New Issue
Block a user