View Source Lightning.Extensions.AccountHooking behaviour (Lightning v2.10.4)

Allows handling user creation or registration atomically without relying on async events.

Summary

Callbacks

Link to this callback

handle_create_user(attrs)

View Source
@callback handle_create_user(attrs :: map()) ::
  {:ok, Lightning.Accounts.User.t()} | {:error, Ecto.Changeset.t()}
Link to this callback

handle_register_superuser(attrs)

View Source
@callback handle_register_superuser(attrs :: map()) ::
  {:ok, Lightning.Accounts.User.t()} | {:error, Ecto.Changeset.t()}
Link to this callback

handle_register_user(attrs)

View Source
@callback handle_register_user(attrs :: map()) ::
  {:ok, Lightning.Accounts.User.t()} | {:error, Ecto.Changeset.t()}