Actions
Feature #29565
closedEpic #92641: felogin feature collection
It is not possible to force felogin into a certain display mode
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
felogin
Target version:
-
Start date:
2011-09-08
Due date:
% Done:
0%
Estimated time:
PHP Version:
Tags:
Complexity:
easy
Sprint Focus:
Description
felogin decides what to display according to the passed pivars, in the following code section in tx_felogin_pi1
:
// What to display $content=''; if ($this->piVars['forgot']) { $content .= $this->showForgot(); } elseif ($this->piVars['forgothash']) { $content .= $this->changePassword(); } else { if($this->userIsLoggedIn && !$this->logintype) { $content .= $this->showLogout(); } else { $content .= $this->showLogin(); } }
This makes it impossible to have, for example, a login form (LF) and a "forgot password" form (FP) on the same page because even when setting default pivars from typoscript, the LF will turn into a "forgot password" when the FP form is submitted, because it sets the "forgot" pivar.
My idea would be to introduce a "mode" config variable, so that you can force the mode like this:
plugin.tx_felogin_pi1.mode = forgot
Actions