1
0
Fork 0
mirror of synced 2024-09-30 01:08:13 +13:00

chore: added back abuse limits

This commit is contained in:
Christy Jacob 2020-01-13 00:09:09 +05:30
parent 479bb0cf81
commit d33ffbbd37

View file

@ -454,8 +454,8 @@ $utopia->get('/v1/auth/login/oauth/:provider/redirect')
->label('error', __DIR__.'/../views/general/error.phtml')
->label('webhook', 'auth.oauth')
->label('scope', 'auth')
// ->label('abuse-limit', 100)
// ->label('abuse-key', 'ip:{ip}')
->label('abuse-limit', 100)
->label('abuse-key', 'ip:{ip}')
->label('docs', false)
->param('provider', '', function () use ($providers) { return new WhiteList(array_keys($providers)); }, 'OAuth provider')
->param('code', '', function () { return new Text(1024); }, 'OAuth code')