0

I'm creating my own blog engine to learn Symfony, and I have a question :

How can I let users edit their password, name, and Profile (embedded form) ?

I tried creating an admin-module on sfGuardUser, and hiding fields like "permisions" and "groups", but that form erases the permissions on saving :(

Any ideas ?

Manu
  • 4,410
  • 6
  • 43
  • 77

2 Answers2

0

I created an admin module based on sfGuardUser,

then I created my own form :

class mysfGuardUserAdminForm extends sfGuardRegisterForm

And called it in generator.yml :

  form:

    class: mySfGuardUserAdminForm

    display:

      "User": [email_address, username, password, password_again, Profile]

That + a function checking the user's rights, so that he cannot edit someone else's profile.

Manu
  • 4,410
  • 6
  • 43
  • 77
0

Try sfApply plugin. It has a form for sign up and a form for editing user data, including password, email and whatever you add.

Viktoras
  • 53
  • 8