Comparison

mod_http_admin_api/mod_http_admin_api.lua @ 4358:d3e0fe470877

mod_http_admin_api: Ensure 'reusable' flag is always present on an invite
author Matthew Wild <mwild1@gmail.com>
date Tue, 19 Jan 2021 20:35:08 +0000
parent 4357:a49ca492e621
child 4359:5dbce7f35aa0
comparison
equal deleted inserted replaced
4357:a49ca492e621 4358:d3e0fe470877
61 local groups = additional_data and additional_data.groups or nil; 61 local groups = additional_data and additional_data.groups or nil;
62 local source = additional_data and additional_data.source or nil; 62 local source = additional_data and additional_data.source or nil;
63 return { 63 return {
64 id = token_info.token; 64 id = token_info.token;
65 type = token_info.type; 65 type = token_info.type;
66 reusable = token_info.reusable; 66 reusable = not not token_info.reusable;
67 inviter = token_info.inviter; 67 inviter = token_info.inviter;
68 jid = token_info.jid; 68 jid = token_info.jid;
69 uri = token_info.uri; 69 uri = token_info.uri;
70 landing_page = token_info.landing_page; 70 landing_page = token_info.landing_page;
71 created_at = token_info.created_at; 71 created_at = token_info.created_at;