Bug #18868
closedfelogin: forgot-password email sent twice
0%
Description
When including the plugin felogin two times on one page all the actions are performed twice.
In my case I have a "login failed"-page which contains a short text and a felogin-form. On all pages is included a small quicklogin instance of felogin (just shows username, password and submit).
When I try to get my password via "Forgot your password?", I will get my password twice. That is because both instances of felogin perform their actions.
I fixed this behavior with changing the felogin-core, so that an forgot password-mail will just be sent if the loaded plugin has activated the checkbox "Show Forgot password? link:"
It would be usefull when the felogin-actions would be performed just once per site-call.
Kind Regards,
Urs
fixed in "typo3/sysext/felogin/pi1/class.tx_felogin_pi1.php"
-----------------------------------------------------------------------------
Line 100 OLD:
if ($this->piVars['forgot']) {
Line 100 NEW:
if ($this->piVars['forgot'] && intval($this->conf['showForgotPassword']) == 1) {
(issue imported from #M8547)