Yes, i changed my routing and it work good.
for my secured pages i have /account/member/*, for change email action i did just /changeEmail thats why it don't work. now i have /account/member/changeEmail. I am moroccan ;) thanks On 12 avr, 11:33, Alvaro Touzon <alvaro.tou...@gmail.com> wrote: > will be the problem un security routing? > Becose this data is in all pages after auth > sorry for my poor english too. > I'm spanish > Thanks > > 2011/4/12 symfonyMan <ezziani.cha...@gmail.com> > > > > > And in the symfony profiler, > > > after authentication, i am redirected to account/member that print all > > my infos( i see that i am authenticated) , in the changeEmail action i > > am not authenticated !! > > > thanks > > > On 12 avr, 11:26, symfonyMan <ezziani.cha...@gmail.com> wrote: > > > ok, > > > > in my bundle AccountBundle I have two controllers UserController and > > > ProfilController. > > > > in the first one i have all security function ( register, login, > > > logout, change password...) and in the second i have actions for > > > completing and editing profil .. > > > > AccoutController : > > > > ..... > > > /** > > > * @extra:Route("/account/member/", name="_account") > > > * @extra:Template > > > */ > > > public function accountAction() > > > { > > > var_dump($this->container->get('security.context')->getToken()->getUser()->getEmail() > > );exit; > > > > return(array()); > > > } > > > in this action i can access the user informations, but not in other > > > action in the same controller or not > > > > sorry for my bad english > > > > thanks > > > > On 12 avr, 10:46, Alvaro Touzon <alvaro.tou...@gmail.com> wrote: > > > > > Could you put both codes? > > > > thanks > > > > > 2011/4/12 symfonyMan <ezziani.cha...@gmail.com> > > > > > > Thanks for replay :) > > > > > > this work just in one controller ?? > > > > > > i tried to use it in other controller but i have Null. > > > > > > how can i get the user email from the session ? > > > > > > thanks > > > > > > On 12 avr, 10:13, Alvaro Touzon <alvaro.tou...@gmail.com> wrote: > > > > > > Hi, > > > > > > try in the action to use: > > > > > > $this->get()$this->container->get('security.context')->getToken() > > > > > > after authentication. > > > > > > Thanks > > > > > > > 2011/4/12 symfonyMan <ezziani.cha...@gmail.com> > > > > > > > > Hello, > > > > > > > > how to get informations (email, username, TOKEN...) from session > > after > > > > > > > user authentication ?? > > > > > > > > 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 > > > > > > > -- > > > > > > Álvaro, Senior Web Developer > > > > > > -- > > > > > 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 > > > > > -- > > > > Álvaro, Senior Web Developer > > > -- > > 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 > > -- > Álvaro, Senior Web Developer -- 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