Merge commit from fork

This commit is contained in:
Claire 2025-08-05 14:53:04 +02:00 committed by GitHub
parent 1fd3510b32
commit edece2a197
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -126,7 +126,7 @@ class Rack::Attack
end
throttle('throttle_email_confirmations/email', limit: 5, period: 30.minutes) do |req|
if req.post? && req.path_matches?('/auth/password')
if req.post? && req.path_matches?('/auth/confirmation')
req.params.dig('user', 'email').presence
elsif req.post? && req.path == '/api/v1/emails/confirmations'
req.authenticated_user_id