dialog_user_add

Show a dialog for adding a user. This creates a person resource and adds a username / password to it.

The optional repeatable on_success argument runs actions after the user is created. The submitted name and email fields become properties of a published person resource; the username and password are stored as an identity in the same database transaction. The dialog can optionally send a welcome email.

The site must be writable and the current user must be allowed to use mod_admin_identity.

{% button text="Add user" action={dialog_user_add on_success={reload}} %}

Edit on GitHub