View Source Mobilizon.Web.Email.User (Mobilizon v4.1.0-alpha.1)
Handles emails sent to users.
Summary
Functions
Check that the provided token is correct and update provided password
Send the email reset password, if it's not too soon since the last send
Functions
@spec check_confirmation_token(String.t()) :: {:ok, Mobilizon.Users.User.t()} | {:error, :invalid_token | Ecto.Changeset.t()}
@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
@spec confirmation_email(Mobilizon.Users.User.t(), String.t()) :: Swoosh.Email.t()
@spec reset_password_email(Mobilizon.Users.User.t(), String.t()) :: Swoosh.Email.t()
@spec send_confirmation_email(Mobilizon.Users.User.t(), String.t()) :: {:ok, term()} | {:error, term()}
@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