Phauxth v2.3.2 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 translations 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()
View Source
already_confirmed() :: String.t()
already_confirmed() :: String.t()
Link to this callback
default_error()
View Source
default_error()
View Source
default_error() :: String.t()
default_error() :: String.t()
Link to this callback
invalid_token()
View Source
invalid_token()
View Source
invalid_token() :: String.t()
invalid_token() :: String.t()