Changeset 19772
- Timestamp:
- 07/01/09 10:41:12 (7 months ago)
- Files:
-
- plugins/sfGuardPlugin/branches/1.0/modules/sfGuardAuth/lib/BasesfGuardAuthActions.class.php (modified) (2 diffs)
- plugins/sfGuardPlugin/branches/1.1/modules/sfGuardAuth/lib/BasesfGuardAuthActions.class.php (modified) (2 diffs)
- plugins/sfGuardPlugin/branches/1.2/modules/sfGuardAuth/lib/BasesfGuardAuthActions.class.php (modified) (2 diffs)
- plugins/sfGuardPlugin/branches/1.2/package.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfGuardPlugin/branches/1.0/modules/sfGuardAuth/lib/BasesfGuardAuthActions.class.php
r10913 r19772 21 21 { 22 22 $user = $this->getUser(); 23 24 if ($this->getRequest()->isXmlHttpRequest()) 25 { 26 $this->getResponse()->setHeaderOnly(true); 27 $this->getResponse()->setStatusCode(401); 28 29 return sfView::NONE; 30 } 31 23 32 if ($this->getRequest()->getMethod() == sfRequest::POST) 24 33 { … … 38 47 else 39 48 { 40 if ($this->getRequest()->isXmlHttpRequest())41 {42 $this->getResponse()->setHeaderOnly(true);43 $this->getResponse()->setStatusCode(401);44 45 return sfView::NONE;46 }47 48 49 // if we have been forwarded, then the referer is the current URL 49 50 // if not, this is the referer of the current request plugins/sfGuardPlugin/branches/1.1/modules/sfGuardAuth/lib/BasesfGuardAuthActions.class.php
r10913 r19772 26 26 } 27 27 28 if ($request->isXmlHttpRequest()) 29 { 30 $this->getResponse()->setHeaderOnly(true); 31 $this->getResponse()->setStatusCode(401); 32 33 return sfView::NONE; 34 } 35 28 36 $class = sfConfig::get('app_sf_guard_plugin_signin_form', 'sfGuardFormSignin'); 29 37 $this->form = new $class(); … … 47 55 else 48 56 { 49 if ($request->isXmlHttpRequest())50 {51 $this->getResponse()->setHeaderOnly(true);52 $this->getResponse()->setStatusCode(401);53 54 return sfView::NONE;55 }56 57 57 // if we have been forwarded, then the referer is the current URL 58 58 // if not, this is the referer of the current request plugins/sfGuardPlugin/branches/1.2/modules/sfGuardAuth/lib/BasesfGuardAuthActions.class.php
r12075 r19772 26 26 } 27 27 28 if ($request->isXmlHttpRequest()) 29 { 30 $this->getResponse()->setHeaderOnly(true); 31 $this->getResponse()->setStatusCode(401); 32 33 return sfView::NONE; 34 } 35 28 36 $class = sfConfig::get('app_sf_guard_plugin_signin_form', 'sfGuardFormSignin'); 29 37 $this->form = new $class(); … … 47 55 else 48 56 { 49 if ($request->isXmlHttpRequest())50 {51 $this->getResponse()->setHeaderOnly(true);52 $this->getResponse()->setStatusCode(401);53 54 return sfView::NONE;55 }56 57 57 // if we have been forwarded, then the referer is the current URL 58 58 // if not, this is the referer of the current request plugins/sfGuardPlugin/branches/1.2/package.xml
r15757 r19772 177 177 178 178 <changelog> 179 <release> 180 <version> 181 <release>3.1.4</release> 182 <api>3.0.0</api> 183 </version> 184 <stability> 185 <release>stable</release> 186 <api>stable</api> 187 </stability> 188 <license uri="http://www.symfony-project.com/license">MIT license</license> 189 <date>2008-12-05</date> 190 <license>MIT</license> 191 <notes> 192 * fabien: fixed login method when called from an Ajax request 193 </notes> 194 </release> 179 195 <release> 180 196 <version>

