Redirect user after login always to user/1

Created on 14 February 2023, over 1 year ago
Updated 22 February 2023, over 1 year ago

Problem/Motivation

When a user succesfully authenticates, the user is redirected to a page as configured in the module settings at "Redirect user after login". No matter what I put there, the user is always redirected to mydomain/user/1?check_logged_in=1
which results in an "Access denied" in my case.

Steps to reproduce

  • Go to TFA setting at /admin/config/people/miniorange_2fa/login_settings
  • At the Advanced section set Redirect user after log in to a page in your website, like https://mydomein/user
  • Add a new user that has TFA enabled.
  • Log in as that user.
  • Athenticate succesfully
  • You end up at mydomain/user/1?check_logged_in=1 which will most likely be access denied.
🐛 Bug report
Status

Fixed

Version

5.0

Component

Code

Created by

🇳🇱Netherlands ecvandenberg

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024