3
votes

I'm able to integrate FOS bundle to sonata Admin bundle using Sonata User Bundle. My login thing works fine. Now i want to add functionality like change password which is there in FOSUserBundle to sonata Admin Bundle

I can access profile functionality of FOS User Bundle using

localhost/myproject/web/app_dev.php/profile

But same thing for change password

localhost/myproject/web/app_dev.php/change-password cant access.

I want to integrate it with SonataAdminBundle as

localhost/myproject/web/app_dev.php/admin/change-password

Can you suggest me where should i change Or where i went wrong?

In my routing I have

fos_user_security:
    resource: "@FOSUserBundle/Resources/config/routing/security.xml"

fos_user_profile:
    resource: "@FOSUserBundle/Resources/config/routing/profile.xml"
    prefix: /profile

fos_user_register:
    resource: "@FOSUserBundle/Resources/config/routing/registration.xml"
    prefix: /register

fos_user_resetting:
    resource: "@FOSUserBundle/Resources/config/routing/resetting.xml"
    prefix: /resetting

fos_user_change_password:
    resource: "@FOSUserBundle/Resources/config/routing/change_password.xml"
    prefix: /change-password
1

1 Answers

6
votes

Have you setup a route for the change password?

fos_user_change_password:
    resource: "@FOSUserBundle/Resources/config/routing/change_password.xml"
    prefix: /profile