Comparison

plugins/mod_invites.lua @ 13853:5611ce3bc54c

Merge 13.0->trunk
author Kim Alvefur <zash@zash.se>
date Wed, 16 Apr 2025 18:27:46 +0200
parent 13851:ecafafec7806
comparison
equal deleted inserted replaced
13850:0326e1338d73 13853:5611ce3bc54c
219 if not invite_url_template or invite.landing_page then return; end 219 if not invite_url_template or invite.landing_page then return; end
220 220
221 -- Determine whether this type of invitation is supported by the landing page 221 -- Determine whether this type of invitation is supported by the landing page
222 local invite_type; 222 local invite_type;
223 if invite.type == "register" then 223 if invite.type == "register" then
224 invite_type = "account"; 224 if invite.additional_data and invite.additional_data.allow_reset then
225 invite_type = "password-reset";
226 else
227 invite_type = "account";
228 end
225 elseif invite.type == "roster" then 229 elseif invite.type == "roster" then
226 if invite.allow_registration then 230 if invite.allow_registration then
227 invite_type = "account-and-contact"; 231 invite_type = "account-and-contact";
228 else 232 else
229 invite_type = "contact-only"; 233 invite_type = "contact-only";