Software / code / prosody
Diff
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 |
line wrap: on
line diff
--- a/plugins/mod_invites.lua Wed Apr 16 12:03:08 2025 +0100 +++ b/plugins/mod_invites.lua Wed Apr 16 18:27:46 2025 +0200 @@ -221,7 +221,11 @@ -- Determine whether this type of invitation is supported by the landing page local invite_type; if invite.type == "register" then - invite_type = "account"; + if invite.additional_data and invite.additional_data.allow_reset then + invite_type = "password-reset"; + else + invite_type = "account"; + end elseif invite.type == "roster" then if invite.allow_registration then invite_type = "account-and-contact";