mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-31 07:11:33 +00:00
Making the window 5 seconds instead of milliseconds sounds about right
This commit is contained in:
parent
67411d7fa9
commit
e595298994
@ -22,7 +22,7 @@ safe.use('/', express.static('./uploads'))
|
|||||||
safe.use('/', express.static('./public'))
|
safe.use('/', express.static('./public'))
|
||||||
safe.use('/api', api)
|
safe.use('/api', api)
|
||||||
|
|
||||||
let limiter = new rateLimit({ windowMs: 5, max: 2 })
|
let limiter = new rateLimit({ windowMs: 5000, max: 2 })
|
||||||
safe.use('/api/login', limiter)
|
safe.use('/api/login', limiter)
|
||||||
safe.use('/api/register', limiter)
|
safe.use('/api/register', limiter)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user