Skip to content

[5.x]: redirectInput not taking into account when 2FA is enabled #16905

@white-lukas

Description

@white-lukas

What happened?

Description

When you have a login form that has a redirectInput, this input is not taking into account but instead it will always redirect to the postLoginRedirect general config

Steps to reproduce

  1. have 2fa enabled
  2. create a login form
  3. add a redirectInput with an URL different from the postLoginRedirect
  4. login
  5. you're redirected to the postLoginRedirect instead of the passed in redirectInput

Expected behavior

the redirectInput should overwrite the postLoginRedirect config

Actual behavior

redirectInput is not working

Craft CMS version

5.6.11

PHP version

8.3

Operating system and version

ubuntu 24.04

Database type and version

mysql 8.0

Image driver and version

No response

Installed plugins and versions

  • commerce

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions