更改密码在FOS用户捆绑包+ Sonata用户捆绑包+奏鸣曲管理员捆绑包中不起作用

时间:2012-09-24 06:00:24

标签: symfony fosuserbundle sonata-admin

我可以使用Sonata用户软件包将FOS软件包集成到sonata Admin软件包。我的登录工作正常。现在我想在FOSUserBundle中添加更改密码等功能到sonata Admin Bundle

我可以使用

访问FOS用户包的配置文件功能

localhost / myproject / web / app_dev.php / profile

但更改密码同样如此

localhost / myproject / web / app_dev.php / change-password无法访问。

我希望将它与SonataAdminBundle集成为

本地主机/ myproject的/网络/ app_dev.php /管理/改变密码

你能告诉我应该在哪里改变或者我哪里出错了?

在我的路由中我有

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 个答案:

答案 0 :(得分:6)

您是否设置了更改密码的路线?

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