View Source Mobilizon.Web.Email.User (Mobilizon v4.1.0-alpha.1)

Handles emails sent to users.

Summary

Functions

Link to this function

check_confirmation_token(token)

View Source
@spec check_confirmation_token(String.t()) ::
  {:ok, Mobilizon.Users.User.t()}
  | {:error, :invalid_token | Ecto.Changeset.t()}
Link to this function

check_reset_password_token(password, token)

View Source
@spec check_reset_password_token(String.t(), String.t()) ::
  {:ok, Mobilizon.Users.User.t()}
  | {:error, :user_not_found | Ecto.Changeset.t()}

Check that the provided token is correct and update provided password

Link to this function

confirmation_email(user, locale \\ "en")

View Source
@spec confirmation_email(Mobilizon.Users.User.t(), String.t()) :: Swoosh.Email.t()
Link to this function

render_body(email, template, assigns \\ %{})

View Source
Link to this function

resend_confirmation_email(user, locale \\ "en")

View Source
Link to this function

reset_password_email(user, locale \\ "en")

View Source
@spec reset_password_email(Mobilizon.Users.User.t(), String.t()) :: Swoosh.Email.t()
Link to this function

send_confirmation_email(user, locale \\ "en")

View Source
@spec send_confirmation_email(Mobilizon.Users.User.t(), String.t()) ::
  {:ok, term()} | {:error, term()}
Link to this function

send_email_reset_new_email(user)

View Source
Link to this function

send_email_reset_old_email(user)

View Source
Link to this function

send_password_reset_email(user, locale \\ "en")

View Source
@spec send_password_reset_email(Mobilizon.Users.User.t(), String.t()) :: tuple()

Send the email reset password, if it's not too soon since the last send