我是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它不工作或者:-(
任何人有線索?