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 Source
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(Plug.Conn.t()) :: message()
Link to this function

could_not_sign_in(conn)

View Source
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(Plug.Conn.t()) :: message()
Link to this function

invalid_request(conn)

View Source
invalid_request(Plug.Conn.t()) :: message()
Link to this function

login_with_provider(conn)

View Source
login_with_provider(Plug.Conn.t()) :: message()
Link to this function

remove_provider_authentication(conn)

View Source
remove_provider_authentication(Plug.Conn.t()) :: message()
Link to this function

user_has_been_created(conn)

View Source
user_has_been_created(Plug.Conn.t()) :: message()