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