View Source Pow.Phoenix.Messages behaviour (Pow v1.0.36)
Module that handles messages.
Usage
defmodule MyAppWeb.Pow.Messages do
use Pow.Phoenix.Messages
import MyAppWeb.Gettext
def signed_out(_conn), do: gettext("Signed out successfullly.")
end
Remember to add messages_backend: MyAppWeb.Pow.Messages
to your
configuration.
Summary
Functions
Message for when user couldn't be signed in.
Message for when user has signed in.
Message for when user has signed out.
Message for when user is already authenticated.
Message for when account could not be deleted.
Message for when user has signed up successfully.
Message for when user has deleted their account successfully.
Message for when user has updated their account successfully.
Message for when user is not authenticated.
Types
@type message() :: binary() | nil
Callbacks
@callback invalid_credentials(Plug.Conn.t()) :: message()
@callback signed_in(Plug.Conn.t()) :: message()
@callback signed_out(Plug.Conn.t()) :: message()
@callback user_already_authenticated(Plug.Conn.t()) :: message()
@callback user_could_not_be_deleted(Plug.Conn.t()) :: message()
@callback user_has_been_created(Plug.Conn.t()) :: message()
@callback user_has_been_deleted(Plug.Conn.t()) :: message()
@callback user_has_been_updated(Plug.Conn.t()) :: message()
@callback user_not_authenticated(Plug.Conn.t()) :: message()
Functions
Message for when user couldn't be signed in.
Message for when user has signed in.
Defaults to nil.
Message for when user has signed out.
Defaults to nil.
Message for when user is already authenticated.
Defaults to nil.
Message for when account could not be deleted.
Message for when user has signed up successfully.
Defaults to nil.
Message for when user has deleted their account successfully.
Message for when user has updated their account successfully.
Message for when user is not authenticated.
Defaults to nil.