Fixes for email

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-09-24 12:09:43 +02:00
parent 8c97dd925f
commit 8006b8e0f3
10 changed files with 53 additions and 56 deletions

View File

@@ -31,8 +31,7 @@ defmodule MobilizonWeb.Email.User do
|> assign(:locale, locale)
|> assign(:token, confirmation_token)
|> assign(:subject, subject)
|> render("registration_confirmation.html")
|> Email.premail()
|> render(:registration_confirmation)
end
@spec reset_password_email(User.t(), String.t()) :: Bamboo.Email.t()
@@ -52,7 +51,6 @@ defmodule MobilizonWeb.Email.User do
|> assign(:locale, locale)
|> assign(:token, reset_password_token)
|> assign(:subject, subject)
|> render("password_reset.html")
|> Email.premail()
|> render(:password_reset)
end
end