Project

General

Profile

Actions

Bug #102516

closed

felogin sends invalid password recovery link via email

Added by Marvin Müller 8 months ago. Updated 8 months ago.

Status:
Closed
Priority:
-- undefined --
Assignee:
-
Category:
felogin
Target version:
-
Start date:
2023-11-25
Due date:
% Done:

0%

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

Description

After submitting the password recovery form, I receive an email including a password recovery link. The link mentioned in the email is a relative and not an absolute link. The Protocol and the domain is missing. Specificall the following link is stated:

/log=
in?tx_felogin_login%5Baction%5D=3DshowChangePassword&tx_felogin_login%5Bcon=
troller%5D=3DPasswordRecovery&tx_felogin_login%5Bhash%5D=3D1700969245%7Cf70=
c2a8f5427ac8fff33c95c73204511e9678abc

After copying this relative link to the browser and adding the domain before it is working perfectly fine. What makes it quite confusing is, that in the email footer of the recovery email includes the correct name of the website and the correct absolute domain. Specificall, it looks like this:

This email was sent by SITE_TITLE from URL: http://MYDOMAIN.de/ - Please contact your site administrator if you feel you received this email by accident.
So I tried some debugging
  • RecoveryService.php:141, TYPO3\CMS\FrontendLogin\Service\RecoveryService->prepareMail(): the $url beeing generated is a relative and not an absolute url
  • UriBuilder.php:697, TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder->buildFrontendUri(): forceAbsoluteUrl was set to true
  • UriBuilder.php:699, TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder->buildFrontendUri(): no abslute uri scheme is given (it is null) $this->absoluteUriScheme

Can anyone help me out? I am happy to provide any further information.


Files

current_setup.png (61.3 KB) current_setup.png site config Marvin Müller, 2023-11-26 11:55
Actions

Also available in: Atom PDF