views:

802

answers:

3

Hi!

I'm using symfony 1.2 with sfguard 1.4.1. what's the best practice to register a new user to the system?

10x

+2  A: 

o man - I feal so RTFM!!!

it's:

symfony guard:create-user <username> <password>

Kiwi

kiwi
A: 

anyone know how to add them with data-load so I don't have to recreate it every time I do this. I could create one and then take the data out of the db and add it into the fixtures.yml but somehow seems like there should be a neater way.

Tofuwarrior
A: 

sigh, answered own dumb question, the sfGuardPlugin fixtures file is fine because the plugin handles all the hashing etc during the data-load task.

Tofuwarrior