# HG changeset patch # User Kim Alvefur # Date 1744901462 -7200 # Node ID d68e640e76ad795f473f5e89f39ab44b9fea96d3 # Parent 1c16bb49f6f661b9f402b083e82780691ea89316 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 diff -r 1c16bb49f6f6 -r d68e640e76ad mod_invites_page/mod_invites_page.lua --- 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