Phauxth v1.2.9 Phauxth.UserMessages.Base behaviour View Source

Customizable module to be used to display messages to users.

These messages can be customized to display different messages or add translation using gettext.

Custom messages

The following module is a basic example of how to translate the user messages that Phauxth outputs:

defmodule MyApp.UserMessages do
  use Phauxth.UserMessages.Base
  import MyApp.Gettext

  def default_error, do: gettext "Invalid credentials"
end

Link to this section Summary

Link to this section Callbacks

Link to this callback already_confirmed() View Source
already_confirmed() :: String.t()
Link to this callback default_error() View Source
default_error() :: String.t()
Link to this callback invalid_token() View Source
invalid_token() :: String.t()
Link to this callback need_confirm() View Source
need_confirm() :: String.t()