Pow.Extension.Phoenix.ControllerCallbacks.Base behaviour (Pow v1.0.24) View Source

Used for the Phoenix Controller Callbacks module in extensions.

Usage

defmodule MyPowExtension.Phoenix.ControllerCallbacks do
  use Pow.Extension.Phoenix.ControllerCallbacks.Base

  @impl true
  def before_respond(Pow.Phoenix.RegistrationController, :create, {:ok, user, conn}, _config) do
    {:ok, user, conn}
  end
end

Link to this section Summary

Link to this section Callbacks

Link to this callback

before_process(atom, atom, any, arg4)

View Source

Specs

before_process(atom(), atom(), any(), Pow.Config.t()) :: any()
Link to this callback

before_respond(atom, atom, any, arg4)

View Source

Specs

before_respond(atom(), atom(), any(), Pow.Config.t()) :: any()