View Source PowEmailConfirmation.Ecto.Context (Pow v1.0.38)

Handles e-mail confirmation context for user.

Summary

Functions

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

Link to this function

confirm_email(user, params, config)

View Source
@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.

Link to this function

current_email_unconfirmed?(arg1, config)

View Source
@spec current_email_unconfirmed?(Pow.Ecto.Context.user(), Pow.Config.t()) :: boolean()

Checks if the users current e-mail is unconfirmed.

Link to this function

get_by_confirmation_token(token, config)

View Source
@spec get_by_confirmation_token(binary(), Pow.Config.t()) ::
  Pow.Ecto.Context.user() | nil

Finds a user by the email_confirmation_token column.

Link to this function

pending_email_change?(arg1, config)

View Source
@spec pending_email_change?(Pow.Ecto.Context.user(), Pow.Config.t()) :: boolean()

Checks if the user has a pending e-mail change.