View Source PowEmailConfirmation.Ecto.Context (Pow v1.0.38)
Handles e-mail confirmation context for user.
Summary
Functions
Confirms e-mail.
Checks if the users current e-mail is unconfirmed.
Finds a user by the email_confirmation_token
column.
Checks if the user has a pending e-mail change.
Functions
@spec confirm_email(Pow.Ecto.Context.user(), map(), Pow.Config.t()) :: {:ok, Pow.Ecto.Context.user()} | {:error, Pow.Ecto.Context.changeset()}
Confirms e-mail.
See PowEmailConfirmation.Ecto.Schema.confirm_email_changeset/2
.
@spec current_email_unconfirmed?(Pow.Ecto.Context.user(), Pow.Config.t()) :: boolean()
Checks if the users current e-mail is unconfirmed.
@spec get_by_confirmation_token(binary(), Pow.Config.t()) :: Pow.Ecto.Context.user() | nil
Finds a user by the email_confirmation_token
column.
@spec pending_email_change?(Pow.Ecto.Context.user(), Pow.Config.t()) :: boolean()
Checks if the user has a pending e-mail change.