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

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

message()

@type message() :: binary() | nil

Callbacks

invalid_credentials(t)

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

signed_in(t)

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

signed_out(t)

@callback signed_out(Plug.Conn.t()) :: message()

user_already_authenticated(t)

@callback user_already_authenticated(Plug.Conn.t()) :: message()

user_could_not_be_deleted(t)

@callback user_could_not_be_deleted(Plug.Conn.t()) :: message()

user_has_been_created(t)

@callback user_has_been_created(Plug.Conn.t()) :: message()

user_has_been_deleted(t)

@callback user_has_been_deleted(Plug.Conn.t()) :: message()

user_has_been_updated(t)

@callback user_has_been_updated(Plug.Conn.t()) :: message()

user_not_authenticated(t)

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

Functions

invalid_credentials(conn)

Message for when user couldn't be signed in.

signed_in(conn)

Message for when user has signed in.

Defaults to nil.

signed_out(conn)

Message for when user has signed out.

Defaults to nil.

user_already_authenticated(conn)

Message for when user is already authenticated.

Defaults to nil.

user_could_not_be_deleted(conn)

Message for when account could not be deleted.

user_has_been_created(conn)

Message for when user has signed up successfully.

Defaults to nil.

user_has_been_deleted(conn)

Message for when user has deleted their account successfully.

user_has_been_updated(conn)

Message for when user has updated their account successfully.

user_not_authenticated(conn)

Message for when user is not authenticated.

Defaults to nil.