[FEATURE] Show forgot password only if conf showForgotPassword = 1
[Packages/TYPO3.CMS.git] / 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
+?>