mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
fix(portal): Reduce the timeouts for rate limited emails (#6573)
Fixes #6108
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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, _} ->
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user