Software / code / prosody-modules
Changeset
6234:d68e640e76ad
mod_invites_page: Skip adding landing page for password reset invites
Such invites are not currently supported and rendering them as regular
invites is confusing and does not work correctly
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 17 Apr 2025 16:51:02 +0200 |
| parents | 6233:1c16bb49f6f6 |
| children | 6235:db308d6a3b56 |
| files | mod_invites_page/mod_invites_page.lua |
| diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_invites_page/mod_invites_page.lua Fri Apr 11 20:08:56 2025 -0500 +++ b/mod_invites_page/mod_invites_page.lua Thu Apr 17 16:51:02 2025 +0200 @@ -60,6 +60,8 @@ -- so the user will only receive a URI. The client should be able to handle this -- by automatically falling back to a client-specific landing page, per XEP-0401. if not invite.allow_registration then return; end + -- password reset invites are not currently supported + if invite.additional_data and invite.additional_data.allow_reset then return end invite.landing_page = render_url(invite_url_template, { host = module.host, invite = invite }); end