1
0
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:
Jack Foltz 2018-12-26 21:03:41 -05:00
parent 5f2320a492
commit 685783f6a4
Signed by: foltik
GPG Key ID: D1F0331758D1F29A

View File

@ -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 = [