PowAssent v0.4.5 PowAssent.Phoenix.Messages View Source
Module that handles messages for Powassent.
Usage
defmodule MyAppWeb.Pow.Messages do
use Pow.Phoenix.Messages
use Pow.Extension.Phoenix.Messages,
extensions: [PowAssent]
import MyAppWeb.Gettext
def pow_assent_signed_in(conn) do
provider = Phoenix.Naming.humanize(conn.params["provider"])
gettext("You've been signed in with %{provider}.")
end
end
Remember to update configuration with messages_backend: MyAppWeb.Pow.Messages
.
Link to this section Summary
Link to this section Types
Link to this section Functions
Link to this function
account_already_bound_to_other_user(conn)
View Sourceaccount_already_bound_to_other_user(Plug.Conn.t()) :: message()
Link to this function
authentication_has_been_removed(conn)
View Sourceauthentication_has_been_removed(Plug.Conn.t()) :: message()
Link to this function
could_not_sign_in(conn)
View Sourcecould_not_sign_in(Plug.Conn.t()) :: message()
Link to this function
identity_cannot_be_removed_missing_user_password(conn)
View Sourceidentity_cannot_be_removed_missing_user_password(Plug.Conn.t()) :: message()
Link to this function
login_with_provider(conn)
View Sourcelogin_with_provider(Plug.Conn.t()) :: message()
Link to this function
remove_provider_authentication(conn)
View Sourceremove_provider_authentication(Plug.Conn.t()) :: message()
Link to this function
user_has_been_created(conn)
View Sourceuser_has_been_created(Plug.Conn.t()) :: message()