Software /
code /
prosody-modules
Changeset
4375:03cf0d41b272
mod_http_admin_api: Allow specifying groups in account invite
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 23 Jan 2021 12:52:48 +0000 |
parents | 4374:e707810a943e |
children | 4376:4b617a246d81 |
files | mod_http_admin_api/mod_http_admin_api.lua |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_http_admin_api/mod_http_admin_api.lua Sat Jan 23 11:59:23 2021 +0000 +++ b/mod_http_admin_api/mod_http_admin_api.lua Sat Jan 23 12:52:48 2021 +0000 @@ -170,7 +170,9 @@ end invite = invites.create_group(options.groups, nil, options.ttl); elseif invite_type == "account" then - invite = invites.create_account(options.username, nil, options.ttl); + invite = invites.create_account(options.username, { + groups = options.groups; + }, options.ttl); else return 400; end