我是smyfony的新手,我一直在玩这个sfDoctrineGuard插件一整天。 它的大部分工作。我只是遇到了忘记密码功能的麻烦。sfDoctrineGuard和忘记密码功能
其实我根据插件中的自述文件做了所有事情。
的问题是:
在security.yml我设置
默认: is_secure:真
明显的模块中sfGuard有这么一个最高审计机关security.yml:
安全: is_secure:false
登录: is_secure:假
signout: is_secure:假
这是有道理的,否则引起的登录网站将无法访问。
但
它似乎并没有与forgot_password功能工作:
的routing.yml
sf_guard_signin: 网址:/登录 PARAM:{模块:sfGuardAuth,动作:登入}
sf_guard_signout: 网址:/注销 PARAM:{模块:sfGuardAuth,动作:signout}
sf_guard_forgot_password: 网址:/ forgot_password PARAM:{模块:sfGuardForgotPassword,动作:索引}
sf_guard_forgot_password_change: 网址:/ forgot_password /:unique_key 类:sfDoctrineRoute 选项:{模型:sfGuardForgotPassword,类型:对象} PARAM:{模块:sfGuardForgotPassword,动作:改变} 要求: sf_method:GET,POST]
我无法访问/ forgot_password因为我重新路由到/登录p年龄。 所以我把security.yml与
forgot_password: is_secure:假
在sfGuardForgotPassword模块的config目录。 但这似乎并没有工作。
,如果我把这个在全球security.yml它不工作或者:-(
任何人有线索?