[FEATURE] Show forgot password only if conf showForgotPassword = 1 41/22541/4
authorNicolas Forgeot <nicolas.forgeot.t@gmail.com>
Wed, 24 Jul 2013 13:59:24 +0000 (15:59 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Fri, 20 Sep 2013 06:06:15 +0000 (08:06 +0200)
Do not show forgot password form in felogin, if the forgot
password link for the login form has been disabled.

Resolves: #50138
Resolves: #34597
Releases: 6.2
Change-Id: I40b490cb09dc339067ff4ff0bc0d0afe0464a456
Reviewed-on: https://review.typo3.org/22541
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Marco Huber
Tested-by: Marco Huber
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/felogin/Classes/Controller/FrontendLoginController.php

index 1875db6..8714b91 100644 (file)
@@ -167,7 +167,7 @@ class FrontendLoginController extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin
                }
                // What to display
                $content = '';
-               if ($this->piVars['forgot']) {
+               if ($this->piVars['forgot'] && $this->conf['showForgotPassword']) {
                        $content .= $this->showForgot();
                } elseif ($this->piVars['forgothash']) {
                        $content .= $this->changePassword();
@@ -1021,4 +1021,4 @@ class FrontendLoginController extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin
 
 }
 
-?>
\ No newline at end of file
+?>