[TYPO3-core] RFC: #15421: [felogin] Possibility to show logout form direct after login

Ernesto Baschny [cron IT] ernst at cron-it.de
Wed Aug 18 09:12:23 CEST 2010


Hi Steffen,

Steffen Kamper schrieb am 11.08.2010 10:58:

> This is SVN patch request.
> 
> Type: Feature
> 
> Branches: trunk
> 
> BT reference: http://bugs.typo3.org/view.php?id=15421
> 
> If you use felogin within toolbar / menu etc. you may not see the
> success message but direct the logout form.
> 
> The attached patch allows this by configuration
> plugin.tx_felogin_pi1.noSuccessMessageAfterLogin = 1
> 
> You also can do this in plugin flexform, see picture.

Nice feature! Attached my v2, with the following changes:

1) rename "noSuccessMessageAfterLogin" to "showLogoutFormAfterLogin"
(TypoScript and Flexform).

2) Set $this->redirectUrl = '' before processing the showLogout(),
because else you might end up with the wrong URL in the logout form's
"action" (i.e. if you allow getpost redirect on login, but want to
redirect to a specific page on logout, because of access restrictions:
the getpost redirect will be the action of the logout-action, if this is
not reset.

+1 on reading and testing

Cheers,
Ernesto
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 15421-v2.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100818/41eb0e2d/attachment.txt>


More information about the TYPO3-team-core mailing list