lib/generators/authentication/templates/controllers/api/password_resets_controller.rb.tt in authentication-zero-2.4.0 vs lib/generators/authentication/templates/controllers/api/password_resets_controller.rb.tt in authentication-zero-2.5.0

- old
+ new

@@ -32,10 +32,10 @@ def <%= "#{singular_table_name}_params" %> params.permit(:password, :password_confirmation) end <% if options.lockable? %> def require_locking - Locking.lock_on("password_reset_lock_#{request.remote_ip}", wait: 1.hour, attempts: 10) do + Locking.lock_on("password_reset_lock:#{request.remote_ip}", wait: 1.hour, attempts: 10) do render json: { error: "You've exceeded the maximum number of attempts" }, status: :too_many_requests end end <% end -%> end