Pow v1.0.8 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
Link to this section Functions
Link to this function
confirm_email(conn, token)
View Source
confirm_email(conn, token)
View Source
confirm_email(Plug.Conn.t(), binary()) ::
{:ok, map(), Plug.Conn.t()} | {:error, map(), Plug.Conn.t()}
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.