-
0 votesanswersviews
身份验证访问控制ROLES
使用symfony2.1和FOSFacebookBundle: 如果用户正在键入www.example.com,例如用户关闭了他的浏览器,如果他仍然经过身份验证,我想重定向到www.example.com/secured . 如果用户通过身份验证,我无法访问indexAction . 我的Security.yml: security: encoders: Symfony\Component... -
1 votesanswersviews
AuthenticationSuccessHandler并在登录后重定向
我试图在我的symfony2应用程序登录后实现重定向,以便重定向,如果我的用户有一个属性 . 我在项目中的Handler文件夹中创建了AuthenticationSuccessHandler.php类: namespace Me\MyBundle\Handler; use Symfony\Component\Security\Http\HttpUtils; use Symfony...