From 1fe9d05d3fae100f5e4b6e6b72f7f143217ba49f Mon Sep 17 00:00:00 2001 From: Nixon Date: Tue, 8 Oct 2024 11:04:56 -0300 Subject: [PATCH] Remove rate limit from api generator --- CHANGELOG.md | 2 ++ .../controllers/api/identity/password_resets_controller.rb.tt | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e97e7d..c82b216 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ ## New version +* Remove rate limit from api generator + ## Authentication Zero 4.0.0 ## * Remove system tests diff --git a/lib/generators/authentication/templates/controllers/api/identity/password_resets_controller.rb.tt b/lib/generators/authentication/templates/controllers/api/identity/password_resets_controller.rb.tt index 9b3cbe0..0cac586 100644 --- a/lib/generators/authentication/templates/controllers/api/identity/password_resets_controller.rb.tt +++ b/lib/generators/authentication/templates/controllers/api/identity/password_resets_controller.rb.tt @@ -1,9 +1,6 @@ class Identity::PasswordResetsController < ApplicationController skip_before_action :authenticate - <%- if options.lockable? -%> - rate_limit to: 10, within: 1.hour, only: :create - <%- end -%> before_action :set_user, only: :update def edit