Pow v1.0.17 PowEmailConfirmation.Plug View Source

Plug helper methods.

Link to this section Summary

Functions

Confirms the e-mail for the user found by the provided confirmation token.

Check if the email for the current user is yet to be confirmed.

Check if the there is a pending email change for the current user.

Link to this section Functions

Link to this function

confirm_email(conn, token)

View Source
confirm_email(Plug.Conn.t(), binary()) ::
  {:ok, map(), Plug.Conn.t()} | {:error, map(), Plug.Conn.t()}

Confirms the e-mail for the user found by the provided confirmation token.

If successful, and a session exists, the session will be regenerated.

Link to this function

email_unconfirmed?(conn)

View Source
email_unconfirmed?(Plug.Conn.t()) :: boolean()

Check if the email for the current user is yet to be confirmed.

Link to this function

pending_email_change?(conn)

View Source
pending_email_change?(Plug.Conn.t()) :: boolean()

Check if the there is a pending email change for the current user.