簡體   English   中英

如何使用symfony2安全性登錄表單

[英]How to have login form work with symfony2 security

這是我的安全登錄設置

form_login:
                # the user is redirected here when he/she needs to login
                login_path:                     /login

                # if true, forward the user to the login form instead of redirecting
                use_forward:                    false

                # submit the login form here
                check_path:                     /login_check

                # by default, the login form *must* be a POST, not a GET
                post_only:                      true

我想問我是否需要make controller並為/ login和/ login check定義路由

因為我沒有在任何地方定義這些路線

只需使用FOSUserBundle一切都是為您FOSUserBundle

https://github.com/FriendsOfSymfony/FOSUserBundle

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM