View Source Pow.Extension.Phoenix.ControllerCallbacks.Base behaviour (Pow v1.0.36)
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
Summary
Callbacks
@callback before_process(atom(), atom(), any(), Pow.Config.t()) :: any()
@callback before_respond(atom(), atom(), any(), Pow.Config.t()) :: any()