Add bootstrapped admin accounts to the default group/circle (thanks jonas!)
This commit is contained in:
parent
2bee41057b
commit
088d9cb840
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue