Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Deliver password reset email asynchronously

Uku Taht19f1b0304309
diff --git a/lib/plausible_web/controllers/auth_controller.ex b/lib/plausible_web/controllers/auth_controller.ex
index 3920fbe16f..d60ca17dbb 100644
--- a/lib/plausible_web/controllers/auth_controller.ex
+++ b/lib/plausible_web/controllers/auth_controller.ex
@@ -252,7 +252,7 @@ defmodule PlausibleWeb.AuthController do
url = PlausibleWeb.Endpoint.url() <> "/password/reset?token=#{token}"
Logger.debug("PASSWORD RESET LINK: " <> url)
email_template = PlausibleWeb.Email.password_reset_email(email, url)
- Plausible.Mailer.deliver_now!(email_template)
+ Plausible.Mailer.deliver_later(email_template)
render(conn, "password_reset_request_success.html",
email: email,