View Source Lightning.Services.AccountHook (Lightning v2.10.4)

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

Summary

Functions

Link to this function

handle_create_user(attrs)

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

Callback implementation for Lightning.Extensions.AccountHooking.handle_create_user/1.

Link to this function

handle_register_superuser(attrs)

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

Callback implementation for Lightning.Extensions.AccountHooking.handle_register_superuser/1.

Link to this function

handle_register_user(attrs)

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

Callback implementation for Lightning.Extensions.AccountHooking.handle_register_user/1.