View Source PowAssent.Phoenix.Messages (PowAssent v0.4.18)

Module that handles messages for PowAssent.

To override messages from PowAssent, the method name has to start with the pow_assent_. So the signed_in/1 method, should be written as pow_assent_signed_in/1.

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 Pow configuration with messages_backend: MyAppWeb.Pow.Messages.

See Pow.Extension.Phoenix.Messages for more.

Summary

Functions

Message for when provider account already exists for another user.

Message for when provider identity has been deleted for user.

Message for when user couldn't be signed in.

Message for when user password is required to delete provider identity.

Message for invalid request.

Message for provider login button.

Message for provider identity deletion button.

Message for when user has signed in.

Message for when user has signed up successfully.

Functions

Link to this function

account_already_bound_to_other_user(conn)

View Source

Message for when provider account already exists for another user.

Link to this function

authentication_has_been_removed(conn)

View Source

Message for when provider identity has been deleted for user.

Message for when user couldn't be signed in.

Link to this function

identity_cannot_be_removed_missing_user_password(conn)

View Source

Message for when user password is required to delete provider identity.

Message for invalid request.

Link to this function

login_with_provider(conn)

View Source

Message for provider login button.

Link to this function

remove_provider_authentication(conn)

View Source

Message for provider identity deletion button.

Message for when user has signed in.

Defaults to nil.

Link to this function

user_has_been_created(conn)

View Source

Message for when user has signed up successfully.

Defaults to nil.