简体   繁体   中英

Change password not working in FOS user bundle+ Sonata User bundle +sonata Admin Bundle

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

Have you setup a route for the change password?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM