Add bootstrapped admin accounts to the default group/circle (thanks jonas!)

This commit is contained in:
Matthew Wild 2021-03-16 14:00:10 +00:00
parent 2bee41057b
commit 088d9cb840
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ local function handle_request(event)
-- Create invite
local invite, invite_err = invites.create_account(nil, {
roles = { ["prosody:admin"] = true };
groups = { "default" };
source = "api/token/bootstrap-"..current_index;
});
if not invite then