Pow v1.0.8 Pow.Phoenix.PlugErrorHandler View Source
Used with Pow.Plug.RequireAuthenticated
and
Pow.Plug.RequireNotAuthenticated
.
Link to this section Summary
Functions
Redirect user and add error flash message
Link to this section Functions
Link to this function
call(conn, atom)
View Source
call(conn, atom)
View Source
call(Plug.Conn.t(), atom()) :: Plug.Conn.t()
call(Plug.Conn.t(), atom()) :: Plug.Conn.t()
Redirect user and add error flash message.
For :not_authenticated
calls, the flash message defaults to
Pow.Phoenix.Messages.user_not_authenticated/1
and the user is redirected to
Pow.Phoenix.Routes.user_not_authenticated_path/1
.
For :already_authenticated
calls, the flash message defaults to
Pow.Phoenix.Messages.user_already_authenticated/1
and the user is redirected to
Pow.Phoenix.Routes.user_already_authenticated_path/1
.