Project

General

Profile

Actions

Bug #28320

closed

FE Login forgot password hashlink lacks scheme and host when using absRefPrefix

Added by Ulfried Herrmann almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
felogin
Target version:
-
Start date:
2011-07-19
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.2
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

The forgot password email contains a hashlink that lacks scheme and host (see attachment) if

config.absRefPrefix
is set in TypoScript Setup. Therfore it's not clickable.
To generate the hashlink (in class tx_felogin_pi1 at line 346 et seq.) config.absRefPrefix and config.baseURL are analysed; config.baseURL (or plugin.tx_felogin_pi1.feloginBaseURL) are used for scheme and host in the link.
In my opinion there is no need for it - it seems to me t3lib_div::locationHeaderUrl() is a better solution.

Suggestion for improvement:
replace lines 367 to 370

$link = ($isAbsRelPrefix ? '' : $this->conf['linkPrefix']) . $this->pi_getPageLink($GLOBALS['TSFE']->id, '', array(
    $this->prefixId . '[user]' => $user['uid'],
    $this->prefixId . '[forgothash]' => $randHash
));

by
$link = $this->pi_getPageLink($GLOBALS['TSFE']->id, '', array(
    $this->prefixId . '[user]' => $user['uid'],
    $this->prefixId . '[forgothash]' => $randHash
));
$link = t3lib_div::locationHeaderUrl($link);


Files

forgot_password_link.png (17.2 KB) forgot_password_link.png email sendt after clicking forgot password Ulfried Herrmann, 2011-07-19 17:18

Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #22434: absRefPrefix => wrong link in reset emailClosed2010-04-12

Actions
Actions

Also available in: Atom PDF