Pow.Phoenix.Messages behaviour (Pow v1.0.23) 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

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.

Link to this section Types

Specs

message() :: binary() | nil

Link to this section Functions

Link to this function

invalid_credentials(conn)

View Source

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.

Link to this function

user_already_authenticated(conn)

View Source

Message for when user is already authenticated.

Defaults to nil.

Link to this function

user_could_not_be_deleted(conn)

View Source

Message for when account could not be deleted.

Link to this function

user_has_been_created(conn)

View Source

Message for when user has signed up successfully.

Defaults to nil.

Link to this function

user_has_been_deleted(conn)

View Source

Message for when user has deleted their account successfully.

Link to this function

user_has_been_updated(conn)

View Source

Message for when user has updated their account successfully.

Link to this function

user_not_authenticated(conn)

View Source

Message for when user is not authenticated.

Defaults to nil.

Link to this section Callbacks

Link to this callback

invalid_credentials(arg1)

View Source

Specs

invalid_credentials(Plug.Conn.t()) :: message()

Specs

signed_in(Plug.Conn.t()) :: message()

Specs

signed_out(Plug.Conn.t()) :: message()
Link to this callback

user_already_authenticated(arg1)

View Source

Specs

user_already_authenticated(Plug.Conn.t()) :: message()
Link to this callback

user_could_not_be_deleted(arg1)

View Source

Specs

user_could_not_be_deleted(Plug.Conn.t()) :: message()
Link to this callback

user_has_been_created(arg1)

View Source

Specs

user_has_been_created(Plug.Conn.t()) :: message()
Link to this callback

user_has_been_deleted(arg1)

View Source

Specs

user_has_been_deleted(Plug.Conn.t()) :: message()
Link to this callback

user_has_been_updated(arg1)

View Source

Specs

user_has_been_updated(Plug.Conn.t()) :: message()
Link to this callback

user_not_authenticated(arg1)

View Source

Specs

user_not_authenticated(Plug.Conn.t()) :: message()