Project

General

Profile

Actions

Bug #59821

closed

link to forgot password page does'nt work in 6.2

Added by Karsten Nowak (undkonsorten) over 10 years ago. Updated about 6 years ago.

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

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
medium
Is Regression:
No
Sprint Focus:

Description

The link to the forgot password page does'nt work in TYPO3 6.2.
In FrontendLogincontroller line 170

$this->conf['showForgotPassword']
is checked.
But in TS-Setup only
showForgotPasswordLink
is set.

Therefore link is shown in frontend but does'nt work

Change Ts-Setup to

showForgotPassword = 1

Now link is not shown in frontend but the forgot password form is shown when i set get parameter in url forgot=1

Change TS-Setup to

showForgotPassword = 1
showForgotPasswordLink = 1

All is working fine. Link is shown and work correctly.

I think its not intended in this way. Change

$this->conf['showForgotPassword'])
to
$this->conf['showForgotPasswordLink'])
would solve the problem too.

For this time i use the TS-Setup like above.


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Feature #50138: Show forgot password if conf showForgotPassword = 1Closed2013-07-18

Actions
Has duplicate TYPO3 Core - Bug #61940: showForgotPasswordLink via TS not working Closed2014-09-28

Actions
Has duplicate TYPO3 Core - Bug #61994: felogin redirect to forgot page not working (wrong packaging?)Closed2014-10-01

Actions
Actions #1

Updated by Markus Klein over 10 years ago

  • Status changed from New to Accepted
  • Complexity set to medium

This is interesting, since it works when defined in the plugin. (via flexforms)

Actions #2

Updated by Gerrit Code Review over 10 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/31081

Actions #3

Updated by Gerrit Code Review over 10 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/31081

Actions #4

Updated by Gerrit Code Review over 10 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/31081

Actions #5

Updated by Karsten Nowak (undkonsorten) over 10 years ago

The patch does'nt work for me.
I need showForgotPassword and showForgotPasswordLink in TS again.

Actions #6

Updated by Markus Klein over 10 years ago

@Karsten Hachmeister: Please post feedback to the patches right into our review system. Thank you.

Actions #7

Updated by Markus Klein over 10 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #8

Updated by André Spindler over 10 years ago

Hello,

sorry for reopening this again, but in my opinion the current bug fix solves the problem of the bug reporter, but creates a regression and a breaking change in behaviour. If I'm wrong, please correct me :)

As I still have a problem with this feature in TYPO3 CMS 6.2.4, I did some research. What I mean:
As far as I know there are two settings for this feature in felogin, even in TYPO3 CMS 4.5 and all later version including 6.1:
- "showForgotPasswordLink" was the option which could be set by typoscript. It is described with this key in the documentation and there is also a "blind" entry in the default typoscript the extension includes
- "showForgotPassword" is the option which can be set in the flexform

Until 6.1 both options work, as when checking for the "forgot" value, none of these options is checked. They are only checked when the login form is created and at least one of them has to be set.

With 6.2.0 there was a breaking change then:
The forgot link was created when any of the values is set, but when checking in the main method, what has to be displayed, only "showForgotPassword" is checked - and HAS to be true. So tzhis works only when the option in the floxform is set. Setting (only) in typoscript does not work.

Now we have this issue and the patchset. It changes the behaviour completely:
1. When checking for displaying the link (line 587), only the typoscript option "showForgotPasswordLink" is checked any more.
2. When chacking what to display in method "main", also only this option is checked. At least the same options are used, that's true. But indeed it changes behaviour of the exension completely again. Now the flexform setting is completely ignored and only typoscript used.

The resolution is quite simple:
In both checks (587: display link or not; 156: what to display) both values have to be checked. If one of them is true, then the link and the form should be displayed.
This way the felogin alsao keeps the same behaviour as it has in all former versions beginning with 4.5 (4.3?).

Regards,
André

Actions #9

Updated by Gerrit Code Review about 10 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33013

Actions #10

Updated by Markus Klein about 10 years ago

  • Status changed from Under Review to Resolved

Hi André!

The flexforms value should be taken into account.
Check line 760 in
https://review.typo3.org/#/c/31081/4/typo3/sysext/felogin/Classes/Controller/FrontendLoginController.php

Actions #11

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF