View Source Pow.Phoenix.PlugErrorHandler (Pow v1.0.38)

Used with Pow.Plug.RequireAuthenticated and Pow.Plug.RequireNotAuthenticated.

Summary

Functions

Redirect user and add error flash message.

Functions

@spec 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.