Project

General

Profile

Actions

Bug #104214

closed

Broken redirect to referrer after changing password

Added by Xavier Perseguers 5 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
felogin
Target version:
-
Start date:
2024-06-26
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

The problem has been described in #21943 already:

- You ask to reset your password, and click the link to enter new password twice
- You get a confirmation message everything is fine, you may now log in
- You do the login and get an "error message" telling you that the link you clicked is invalid and that you should repeat the reset password procedure

If you happen(ed) to click anywhere else in the website at this stage, you would see that you are actually properly authenticated but as a user you see that error message and contact your TYPO3 administrator instead.

Steps

0. Ensure your felogin plugin is configured to take "referrer" as first redirect option after successful login
1. Click on password reset link
2. Password reset form is presented. Here info:

3. Change is successful, it redirects to login page at the end of \TYPO3\CMS\FrontendLogin\Controller\PasswordRecoveryController::changePasswordAction()
4. After successful login, I'm redirected to the password change as it's part of the referer:


Files

clipboard-202406260951-evjop.png (84.4 KB) clipboard-202406260951-evjop.png Xavier Perseguers, 2024-06-26 07:51
clipboard-202406260958-nygji.png (371 KB) clipboard-202406260958-nygji.png Xavier Perseguers, 2024-06-26 07:58
clipboard-202406261024-7o9hp.png (39.1 KB) clipboard-202406261024-7o9hp.png Xavier Perseguers, 2024-06-26 08:24

Related issues 3 (1 open2 closed)

Related to TYPO3 Core - Bug #21943: redirect to referer when changing passwordClosed2010-01-11

Actions
Related to TYPO3 Core - Bug #100772: Disabling of referer redirect via redirectReferrer flag is not persisted on login failureUnder Review2023-04-27

Actions
Related to TYPO3 Core - Bug #101581: felogin gives "1554994253: The link you clicked is not valid. Please repeat the forgot password procedure" on first login after password resetClosed2023-08-04

Actions
Actions

Also available in: Atom PDF