Pow v1.0.20 PowEmailConfirmation.Ecto.Context View Source
Handles e-mail confirmation context for user.
Link to this section 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.
Link to this section Functions
Link to this function
confirm_email(user, params, config)
View Sourceconfirm_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 Sourcecurrent_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 Sourceget_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 Sourcepending_email_change?(Pow.Ecto.Context.user(), Pow.Config.t()) :: boolean()
Checks if the user has a pending e-mail change.