[FLOW3-general] Logout doesn't work in blog package
Visay Keo
typo3 at visay.info
Thu Dec 8 01:16:44 CET 2011
Hi Peter, Hi Thomas
Thanks for the replies.
I apply Thomas's workaround to make it run for now in my app, and also
watch the Forge issue Peter created. Looking forward to the commit which
fix this problem :-)
Cheers,
Visay
On 12/07/2011 10:44 PM, Thomas Plessis wrote:
> Hi,
>
> Same problem like you. I've solved that by forcing the token status, like that :
>
> public function logoutAction() {
> // Change manually the authentication status
> $this->authenticationManager->logout();
> $activeTokens = $this->securityContext->getAuthenticationTokens();
> foreach ($activeTokens as $token) {
> if ($token->isAuthenticated()) {
> $token->setAuthenticationStatus($token::NO_CREDENTIALS_GIVEN);
> }
> }
>
> // Confirmation message, redirection to index page
> $this->addFlashMessage('Vous avez été déconnecté du site.');
> $this->redirect('index', 'Home');
> }
>
> regards,
>
> Thomas Plessis
> Développeur multimédia
> --
> TOTEMnumerique
> 9, Place St Étienne
> 31000 Toulouse
> T. 05 61 14 64 54
> F. 05 61 14 64 55
>
> Le 7 déc. 2011 à 16:34, Peter Beernink a écrit :
>
>> Hi,
>> On 7-12-2011 15:57, Visay Keo wrote:
>>
>>> Hi,
>>>
>>> Just update the whole flow3 installation and blog package from the
>>> repository and found out that logout action doesn't work.
>>>
>>
>> I've noticed this as well and have created an issue for it [1]. This seems to be caused by a change in the handling of authentication without sessions.
>>
>> Greets,
>> Peter
>> ---
>> [1] http://forge.typo3.org/issues/32285
>> _______________________________________________
>> FLOW3-general mailing list
>> FLOW3-general at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general
>
More information about the FLOW3-general
mailing list