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

Handles e-mail confirmation context for user.

Link to this section 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.

Link to this section Functions

Link to this function

confirm_email(user, params, config)

View Source

Specs

Confirms e-mail.

See PowEmailConfirmation.Ecto.Schema.confirm_email_changeset/2.

Link to this function

current_email_unconfirmed?(arg1, config)

View Source

Specs

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

Specs

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

Specs

pending_email_change?(Pow.Ecto.Context.user(), Pow.Config.t()) :: boolean()

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