[symfony-users] Trying to redirect a user to a login page with ajax: 401 unauthorized

2010-07-31 Thread Tristan
Hello in my action.class.php i've got something like : if ($request->isXmlHttpRequest()) { if ($this->getUser()->isAuthenticated()) { .. }else{ $this->redirect('sfGuardAuth/signin'); } }

Re: [symfony-users] Trying to redirect a user to a login page with ajax: 401 unauthorized

2010-07-31 Thread Daniel Lohse
Take a look at how they did this in the apostrophePlugin (trac.apostrophenow.org/plugins/apostrophePlugin/branches/1.4) – it involved a 2-stage process. :) Cheers, Daniel PS: Sorry for being so succinct – I'm pretty tired but wanted to point you in the right direction. :) On 01.08.2010, at 0