mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 03:12:15 +00:00
feat(core): Allow customizing rate limits on a per-route basis, and add rate limiting to more endpoints (#9522)
Co-authored-by: Omar Ajoue <krynble@gmail.com>
This commit is contained in:
committed by
GitHub
parent
cda1e3f6e5
commit
7be616e583
@@ -41,7 +41,7 @@ export class PasswordResetController {
|
||||
/**
|
||||
* Send a password reset email.
|
||||
*/
|
||||
@Post('/forgot-password', { skipAuth: true, rateLimit: true })
|
||||
@Post('/forgot-password', { skipAuth: true, rateLimit: { limit: 3 } })
|
||||
async forgotPassword(req: PasswordResetRequest.Email) {
|
||||
if (!this.mailer.isEmailSetUp) {
|
||||
this.logger.debug(
|
||||
|
||||
Reference in New Issue
Block a user