Hi, thanks for your answer. i was already using security_check as action for my login form, no problem here. There is not the misunderstood between security_check and login_check you that you mentionned. i just used the route name instead of the route pattern to describe it to you ;-)
after all, i tried to use you security.yml and after some tweaking, it works ! in fact it seems that default form_login parameters was wrong for my use-case if finally got this working : profiler: pattern: ^/_profiler security: false wdt: pattern: ^/_wdt security: false login: pattern: ^/login$ security: false main: pattern: ^/$ security: true anonymous: true provider: account welcome: pattern: ^/welcome security: true anonymous: true provider: account notpublic: pattern: ^/ form_login: check_path: /login_check login_path: /login default_target_path: /welcome provider: account logout: path: /logout target: / Thank you _a lot_ for helping ;-) On 5 mai, 02:04, danielholmes <dan...@creatio.com.au> wrote: > Hi Armaury, > > I'm currently having a couple of problems with security myself, so im > not sure if I can answer your whole question. One thing i noticed > though - you should submit your form to /security_check directly > rather than to your /login controller then doing a redirect. The idea > is that the Security bundle will intercept your post to / > security_check and handle your posted query for you. Also you've > mentioned /security_check in your post but in your config you have / > login_check - so be careful in case these are meant to be the same > thing. > > Regarding an example, I have my full security and routing config > here:http://groups.google.com/group/symfony-users/browse_thread/thread/b96... > which should show some working parts for your purposes. > > Hope that helps > Daniel > > On May 4, 7:30 pm, Amaury Leroux de Lens <ama...@lerouxdelens.com> > wrote: > > > > > > > > > Hi ! > > > i'm currently trying to authenticate users on a symfony2 app. > > here is my security.yml :https://gist.github.com/954985 > > > If i use http_basic, a user can login, more precisely, user is logged > > in on secured pattern, so i assume my security config is ok. but my > > goal is to use form_login (as configured in the previous > > security.yml). With these parameters, form_login do not work for me : > > I submit my form from /login, i'm redirected to /security_check > > without any query executed to the database ( according to the debug > > bar ) > > > do someone see the problem here ? or have a good and fresh example on > > how using form_login in symfony2 beta1 ? > > > thanks ! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en