Skip to content

mod_invites: fix redirect_url #4534

@sstrigler

Description

@sstrigler

Before creating a ticket, please consider if this should fit the discussion forum better.

Environment

  • ejabberd version: 26.01+
  • Erlang version: any
  • OS: any
  • Installed from: any

Configuration (only if needed): grep -Ev '^$|^\s*#' ejabberd.yml

mod_invites: {}
mod_register:
  allow_modules:
    - mod_invites # ??? maybe also mod_register_web?
  register_url: ...
...

I.e. semi-open ibr that will redirect to redirec_url but allows to use mod_invites account creation tokens

Errors from error.log/crash.log

Probably none.

Bug description

If redirect_url is set, registration with pre-auth token still get's redirected and as such doesn't work. Instead redirect_url should be disregarded if a valid pre-auth token has been sent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component:InvitesInvite-based account registration, implemented in mod_invites

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions