This commit is contained in:
Bobby Wibowo 2019-09-09 01:27:14 +07:00
parent 1a0d85cc6c
commit 19dcd4fd02
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -114,12 +114,17 @@ module.exports = {
{
// 2 requests in 5 seconds
routes: [
'/api/login/',
'/api/login',
'/api/register'
],
config: {
windowMs: 5 * 1000,
max: 2
max: 2,
statusCode: 200,
message: {
success: false,
description: 'Rate limit reached, please try again in a while.'
}
}
},
{