Pow v1.0.20 Pow.Extension.Phoenix.ControllerCallbacks.Base behaviour 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 Sourcebefore_process(atom(), atom(), any(), Pow.Config.t()) :: any()
Link to this callback
before_respond(atom, atom, any, arg4)
View Sourcebefore_respond(atom(), atom(), any(), Pow.Config.t()) :: any()