[FLOW3-general] Question Package TYPO3.Blog AccountController

Regine Rosewich regine.rosewich at hoellenberg.biz
Wed Nov 2 22:46:55 CET 2011


Hi Bernhard,

In FLOW3 the whole security context is built in a way that a
security-account has to be assigned to a person which extends the
AbstractParty object. I suppose this has to do with some International
Standard concerning basic Security of Internet-Systems where the possibility
to be able to identify a user by his real-name and address(electronic
address) is mandatory.

Regine

> -----Ursprüngliche Nachricht-----
> Von: flow3-general-bounces at lists.typo3.org [mailto:flow3-general-
> bounces at lists.typo3.org] Im Auftrag von Bernhard Marx
> Gesendet: Mittwoch, 2. November 2011 22:24
> An: flow3-general at lists.typo3.org
> Betreff: [FLOW3-general] Question Package TYPO3.Blog AccountController
> 
> Hello,
> 
> 
> 
> /**
> 
>        * @return void
> 
>        */
> 
>        public function initializeUpdateAction() {
> 
> 
> $this->arguments['account']->getPropertyMappingConfiguration()-
> >setTargetTyp
> eForSubProperty('party', 'TYPO3\Party\Domain\Model\Person');
> 
> 
> $this->arguments['account']->getPropertyMappingConfiguration()-
> >allowModific
> ationForSubProperty('party');
> 
> 
> $this->arguments['account']->getPropertyMappingConfiguration()-
> >allowModific
> ationForSubProperty('party.name');
> 
>        }
> 
> 
> 
>        /**
> 
>        * Updates the account properties
> 
>        *
> 
>        * @param TYPO3\FLOW3\Security\Account $account
> 
>        * @param string $password
> 
>        * @return void
> 
>        */
> 
>        public function updateAction(\TYPO3\FLOW3\Security\Account
> $account, $password = '') {
> 
>               if ($password != '') {
> 
> 
> $account->setCredentialsSource($this->hashService-
> >hashPassword($password));
> 
>               }
> 
> 
> 
>               $this->accountRepository->update($account);
> 
>               $this->partyRepository->update($account->getParty());
> 
>               $this->addFlashMessage('Your account details have been
> updated.');
> 
>               $this->redirect('index', 'Admin');
> 
>        }
> 
> 
> 
> Why we have the relation to TYPO.Party? What is the sense here of
> partyRepository and initializeUpdateAction?
> 
> 
> 
> Thanks
> 
> 
> 
> Bernhard
> 
> 
> 
> 





More information about the FLOW3-general mailing list