mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-22 07:51:20 +00:00
Merge pull request #1512 from sharelatex/as-rate-limit-confirm-uni-domain-endpoint
Rate limit confirm university domain endpoint GitOrigin-RevId: 1d03eec3c0e8208e5f643000693f685957e15442
This commit is contained in:
parent
96f283e2c6
commit
d52c30f272
1 changed files with 5 additions and 1 deletions
|
@ -403,7 +403,11 @@ module.exports = class Router
|
|||
),
|
||||
AuthenticationController.httpAuth,
|
||||
CompileController.getFileFromClsiWithoutUser
|
||||
publicApiRouter.post '/api/institutions/confirm_university_domain', AuthenticationController.httpAuth, InstitutionsController.confirmDomain
|
||||
publicApiRouter.post '/api/institutions/confirm_university_domain', RateLimiterMiddlewear.rateLimit({
|
||||
endpointName: 'confirm-university-domain',
|
||||
maxRequests: 1,
|
||||
timeInterval: 60
|
||||
}), AuthenticationController.httpAuth, InstitutionsController.confirmDomain
|
||||
|
||||
webRouter.get '/chrome', (req, res, next) ->
|
||||
# Match v1 behaviour - this is used for a Chrome web app
|
||||
|
|
Loading…
Reference in a new issue