Symfony2 AJAX Login

前端 未结 7 2735
谎友^
谎友^ 2020-11-28 01:42

I have an example where I am trying to create an AJAX login using Symfony2 and FOSUserBundle. I am setting my own success_handler and failure_handler

7条回答
  •  一生所求
    2020-11-28 02:48

    I made a little bundle for new users to provide an AJAX login form : https://github.com/Divi/AjaxLoginBundle

    You just have to replace to form_login authentication by ajax_form_login in the security.yml.

    Feel free to suggest new feature in the Github issue tracker !

提交回复
热议问题