Pow v1.0.16 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

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.