Mercurial > prosody-modules
diff mod_http_admin_api/mod_http_admin_api.lua @ 4357:a49ca492e621
mod_invites, mod_http_admin_api: Allow specifying multiple groups when creating an invite
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 19 Jan 2021 20:34:23 +0000 |
parents | d61d7d30f38d |
children | d3e0fe470877 |
line wrap: on
line diff
--- a/mod_http_admin_api/mod_http_admin_api.lua Mon Jan 18 20:01:17 2021 +0100 +++ b/mod_http_admin_api/mod_http_admin_api.lua Tue Jan 19 20:34:23 2021 +0000 @@ -116,13 +116,13 @@ local invite; if invite_options and invite_options.reusable then - invite = invites.create_group(invite_options.group, invite_options.ttl, { + invite = invites.create_group(invite_options.groups, invite_options.ttl, { source = "admin_api/"..event.session.username; }); else invite = invites.create_account(nil, { source = "admin_api/"..event.session.username; - groups = { invite_options.group }; + groups = invite_options.groups; }); end if not invite then