[Flow] InitializeAction called before reauthentication
Aimo Kuenkel
mail at aimo.cc
Thu Apr 3 09:27:13 CEST 2014
Hi there,
We have a controller with an initializeAction that calls a userService that asks the securityContext with getAccount() and then returns $account->getParty() - and that's definitely working.
So i get and work with the logged in user inside the initializeAction.
We're on 2.2beta1, what version are you talking about?
Greetings,
Aimo
-----Ursprüngliche Nachricht-----
Von: flow-bounces at lists.typo3.org [mailto:flow-bounces at lists.typo3.org] Im Auftrag von Adrian Föder
Gesendet: Donnerstag, 3. April 2014 09:10
An: flow at lists.typo3.org
Betreff: Re: [Flow] InitializeAction called before reauthentication
Hi Christian,
well, that's simply correct.
The initialize actions are rather meant for property mapping corrections etc., if you need more sophisticated handling, put it in the actual controller action method itself or in a service.
Best,
Adrian
Am 02.04.2014 15:15, schrieb Christian Loock:
> Hi,
>
> i wonder if it is on purpose, that my controller's initalizeAction
> method gets called, before the security context is initialized. This
> way, i cant do anything that is Userrelated in this methods, which
> does not seem right to me. Can anybody enlighten me about this?
>
> --
> Cheers,
>
> Christian
>
_______________________________________________
Flow mailing list
Flow at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
More information about the Flow
mailing list