Pow v0.1.0-alpha.1 Pow.Phoenix.Messages behaviour View Source

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.

Link to this section Summary

Link to this section Functions

Link to this function invalid_credentials(conn) View Source
Link to this function user_already_authenticated(conn) View Source
Link to this function user_could_not_be_deleted(conn) View Source
Link to this function user_has_been_created(conn) View Source
Link to this function user_has_been_deleted(conn) View Source
Link to this function user_has_been_updated(conn) View Source
Link to this function user_not_authenticated(conn) View Source

Link to this section Callbacks

Link to this callback invalid_credentials(arg0) View Source
invalid_credentials(Plug.Conn.t()) :: binary()
Link to this callback signed_out(arg0) View Source
signed_out(Plug.Conn.t()) :: binary()
Link to this callback user_could_not_be_deleted(arg0) View Source
user_could_not_be_deleted(Plug.Conn.t()) :: binary()
Link to this callback user_has_been_created(arg0) View Source
user_has_been_created(Plug.Conn.t()) :: binary()
Link to this callback user_has_been_deleted(arg0) View Source
user_has_been_deleted(Plug.Conn.t()) :: binary()
Link to this callback user_has_been_updated(arg0) View Source
user_has_been_updated(Plug.Conn.t()) :: binary()