View Source Pow.Phoenix.Messages behaviour (Pow v1.0.38)

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()
Link to this callback

user_already_authenticated(t)

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

user_could_not_be_deleted(t)

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

user_has_been_created(t)

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

user_has_been_deleted(t)

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

user_has_been_updated(t)

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

user_not_authenticated(t)

View Source
@callback user_not_authenticated(Plug.Conn.t()) :: message()

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.