I've figured out what I need to change for this, but I don't understand why other people wouldn't have the same problem. I changed the following line in BasesfGuardAuthAction:
$user->setReferer($this->getContext()->getActionStack()->getSize() > 1 ? $request->getUri() : $request->getReferer()); to: $user->setReferer($this->getContext()->getActionStack()->getSize() > 1 ? $request->getUri() : false); ie: if the action stack is not greater than 1, then I didn't get sent to the signin as a result of a forward. As such, I wouldn't want to necessarily use the referer. Otherwise, I run into situations like this: 1) If I signout of the application, and then click on the Signin link, the referer is the Signout URL, and after logging in, I am sent to the Signout URL 2) If I click on a registration confirmation, and then click on the Signin link, I am sent back to the registration confirmation after signing in Thanks, Steve On Jun 3, 11:46 pm, Steve the Canuck <steve.san...@gmail.com> wrote: > Hi, > > I'm getting a problem. I have a registration confirmation screen > which the user gets to by clicking on a link in an email. > > After getting a confirmation, the user can login. However, > sfGuardPlugin sends the user to the referer if there is a referer. > > It seems that this is causing the code to go back to the registration > confirmation page! > > What's strange is this didn't happen in the past. I updated the > sfGuardPlugin today to 1.2 and this started happening. > > I tried to set the referer to false in my registration confirmation > action, but it seems like the Signin module still gets it. > > Has anyone else encountered something like this? > > Thanks, > Steve --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---