fix(portal): Reduce the timeouts for rate limited emails (#6573)

Fixes #6108
This commit is contained in:
Andrew Dryga
2024-09-03 13:01:46 -07:00
committed by GitHub
parent afb405ce9f
commit 812dc9190c
3 changed files with 3 additions and 3 deletions

View File

@@ -169,7 +169,7 @@ defmodule Web.AuthController do
|> Web.Mailer.deliver_with_rate_limit(
rate_limit_key: {:sign_in_link, identity.id},
rate_limit: 3,
rate_limit_interval: :timer.minutes(15)
rate_limit_interval: :timer.minutes(5)
)
|> case do
{:ok, _} -> {:ok, fragment}

View File

@@ -644,7 +644,7 @@ defmodule Web.Actors.Show do
|> Web.Mailer.deliver_with_rate_limit(
rate_limit: 3,
rate_limit_key: {:welcome_email, identity.id},
rate_limit_interval: :timer.minutes(15)
rate_limit_interval: :timer.minutes(3)
)
|> case do
{:ok, _} ->

View File

@@ -478,7 +478,7 @@ defmodule Web.SignUp do
|> Web.Mailer.deliver_with_rate_limit(
rate_limit_key: {:sign_up_link, String.downcase(identity.provider_identifier)},
rate_limit: 3,
rate_limit_interval: :timer.minutes(60)
rate_limit_interval: :timer.minutes(30)
)
end
)