Skip to content

Comments

set meta.pre-auth to skip redirect_url if token validated#4535

Merged
badlop merged 1 commit intoprocessone:masterfrom
sstrigler:no_redirect-url_if_preauth
Feb 19, 2026
Merged

set meta.pre-auth to skip redirect_url if token validated#4535
badlop merged 1 commit intoprocessone:masterfrom
sstrigler:no_redirect-url_if_preauth

Conversation

@sstrigler
Copy link
Contributor

@sstrigler sstrigler commented Feb 18, 2026

If mod_register has redirect_url configured, we skip using it if a valid token has been presented.

This way you can have two paths into registration: either an invite token or you redirect to a custom web form.

Fixes #4534

@badlop badlop added the Component:Invites Invite-based account registration, implemented in mod_invites label Feb 18, 2026
@coveralls
Copy link

coveralls commented Feb 18, 2026

Coverage Status

coverage: 34.453% (-0.001%) from 34.454%
when pulling d217a4c on sstrigler:no_redirect-url_if_preauth
into 3b05cb0 on processone:master.

@sstrigler sstrigler force-pushed the no_redirect-url_if_preauth branch from 7d4a5c6 to d217a4c Compare February 18, 2026 16:58
otherwise if redirect_url for mod_register is set, then we can't register even
if a valid invite token has been presented
@sstrigler sstrigler force-pushed the no_redirect-url_if_preauth branch from d217a4c to 785412b Compare February 19, 2026 08:03
@ravermeister
Copy link

Looking forward to see it merged in master🙃

@badlop badlop added this to the ejabberd 26.xx milestone Feb 19, 2026
@badlop badlop merged commit d0d9b2f into processone:master Feb 19, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component:Invites Invite-based account registration, implemented in mod_invites

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mod_invites: fix redirect_url

4 participants