Bug #23816 » class.tx_felogin_pi1.diff
pi1/class.tx_felogin_pi1.php (Arbeitskopie) | ||
---|---|---|
}
|
||
}
|
||
if ($this->conf['linkPrefix'] == -1 && !$isAbsRelPrefix) {
|
||
$typolink = $this->pi_getPageLink($GLOBALS['TSFE']->id, '', array(
|
||
$this->prefixId . '[user]' => $user['uid'],
|
||
$this->prefixId . '[forgothash]' => $randHash
|
||
));
|
||
// link has already a protocol ?
|
||
if($typolinkHasProtocol = preg_match('%^(http)(s?)://%m', $typolink)) {
|
||
$this->conf['linkPrefix'] = null;
|
||
}
|
||
|
||
if (($this->conf['linkPrefix'] == -1) && !$isAbsRelPrefix && !$typolinkHasProtocol) {
|
||
// no preix is set, return the error
|
||
return $this->pi_getLL('ll_change_password_nolinkprefix_message');
|
||
}
|
||
$link = ($isAbsRelPrefix ? '' : $this->conf['linkPrefix']) . $this->pi_getPageLink($GLOBALS['TSFE']->id, '', array(
|
||
$this->prefixId . '[user]' => $user['uid'],
|
||
$this->prefixId . '[forgothash]' => $randHash
|
||
));
|
||
$link = $isAbsRelPrefix ? '' : $this->conf['linkPrefix'] . $typolink;
|
||
$msg = sprintf($this->pi_getLL('ll_forgot_validate_reset_password', '', 0), $user['username'], $link, $validEndString);
|
||