pub async fn create_user(new: NewUser<'_>) -> Result<Account, CmdError>Expand description
Inserts a directory row for a freshly provisioned tenant.
verified is set here rather than by changing 0003_users.sql’s default:
that migration is applied in the global database and in live tenants, so
editing it would change its checksum and fail every boot.
§Errors
ConfigError::EmailBlank for an empty email,
CmdError::Server when the directory is unreachable,
ConfigError::EmailTaken when a concurrent registration won the
UNIQUE (lower(email)) race, so the caller can drop the database it
already provisioned, and the underlying sqlx error for any other failure.