[Flow] Beginner Questions

Jan Herzog Jan-christoph-herzog at gmx.net
Mon Jan 13 11:15:56 CET 2014


Hello,

im new to Flow (not new to php), and got a few questions.
To be honest, i read only Partialy trough the documentation (its quite tiring).

First of all - in my Current project i tried using the Flow authentication system, but didnt get it working. The Documentation on this is leaking of usefull example code. 
So i made my own User, with username as ID, and a password. When i tried use \TYPO3\Flow\Security\Cryptography\HashService generateHash function, i ended up getting different hash values each time executing, while still using the same string. So i switched to Hmac.. but i dont know what it exactly does, and if this is any secure for passwords.
- On this i need an example on how to use the Flow authentication, with linking to an object (i need stuff like address information linked to a user), or just an information on how hmac works.

Second - i got (for example) 2 models. The user, and an Address Data object. I wanted an profile page for the User, so i used /user/show?user=username. In the show action i linked the user to the view. In the Template i used an loop (<f:for each="{user.addressData}" as="addressData">) to cycle trough different address informations. But im not sure if its the right way. It feels quite dirty.

Also in the Create action im doing this:  ($addressDataRepository = new *\*\*\AddressDataRepository();) to add some data with a new user. But this also feels quite dirty.

there might be loads more questions, but i think those two are giving me the most headache.

Thanks for any help you can give me. 

Greetings
Aivaria



More information about the Flow mailing list