PowAssent v0.3.0 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 type
message()
View Source
message()
View Source
message() :: PowAssent.Phoenix.Messages.message()
message() :: PowAssent.Phoenix.Messages.message()
Link to this section Functions
Link to this function
account_already_bound_to_other_user(conn)
View Source
account_already_bound_to_other_user(conn)
View Source
account_already_bound_to_other_user(Plug.Conn.t()) :: message()
account_already_bound_to_other_user(Plug.Conn.t()) :: message()
Link to this function
authentication_has_been_removed(conn)
View Source
authentication_has_been_removed(conn)
View Source
authentication_has_been_removed(Plug.Conn.t()) :: message()
authentication_has_been_removed(Plug.Conn.t()) :: message()
Link to this function
could_not_sign_in(conn)
View Source
could_not_sign_in(conn)
View Source
could_not_sign_in(Plug.Conn.t()) :: message()
could_not_sign_in(Plug.Conn.t()) :: message()
Link to this function
identity_cannot_be_removed_missing_user_password(conn)
View Source
identity_cannot_be_removed_missing_user_password(conn)
View Source
identity_cannot_be_removed_missing_user_password(Plug.Conn.t()) :: message()
identity_cannot_be_removed_missing_user_password(Plug.Conn.t()) :: message()
Link to this function
invalid_request(conn)
View Source
invalid_request(conn)
View Source
invalid_request(Plug.Conn.t()) :: message()
invalid_request(Plug.Conn.t()) :: message()
Link to this function
login_with_provider(conn)
View Source
login_with_provider(conn)
View Source
login_with_provider(Plug.Conn.t()) :: message()
login_with_provider(Plug.Conn.t()) :: message()
Link to this function
remove_provider_authentication(conn)
View Source
remove_provider_authentication(conn)
View Source
remove_provider_authentication(Plug.Conn.t()) :: message()
remove_provider_authentication(Plug.Conn.t()) :: message()
Link to this function
signed_in(conn)
View Source
signed_in(conn)
View Source
signed_in(Plug.Conn.t()) :: message()
signed_in(Plug.Conn.t()) :: message()
Link to this function
user_has_been_created(conn)
View Source
user_has_been_created(conn)
View Source
user_has_been_created(Plug.Conn.t()) :: message()
user_has_been_created(Plug.Conn.t()) :: message()