mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-03 07:30:25 -05:00
12 lines
287 B
JavaScript
12 lines
287 B
JavaScript
|
const RateLimiter = require('../../../../app/src/infrastructure/RateLimiter')
|
||
|
|
||
|
async function clearOverleafLoginRateLimit() {
|
||
|
await RateLimiter.promises.clearRateLimit('overleaf-login', '127.0.0.1')
|
||
|
}
|
||
|
|
||
|
module.exports = {
|
||
|
initialize() {
|
||
|
before(clearOverleafLoginRateLimit)
|
||
|
},
|
||
|
}
|