Changeset 6352
- Timestamp:
- 12/07/07 10:16:20 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfGuardPlugin/README
r6066 r6352 340 340 === 1.1.14 PRE === 341 341 342 * fabien: added HTTP status code 401 when coming from a XMLHTTPRequest (#2469) 342 343 * fabien: fixed HTTP status code for secure (403) and signin (401) actions (#2545) 343 344 plugins/sfGuardPlugin/modules/sfGuardAuth/lib/BasesfGuardAuthActions.class.php
r6066 r6352 36 36 else 37 37 { 38 if ($this->getRequest()->isXmlHttpRequest()) 39 { 40 $this->getResponse()->setHeaderOnly(true); 41 $this->getResponse()->setStatusCode(401); 42 43 return sfView::NONE; 44 } 45 38 46 if (!$user->hasAttribute('referer')) 39 47 { … … 41 49 } 42 50 43 $module = sfConfig::get('sf_login_module'); 44 if ($this->getModuleName() != $module) 51 if ($this->getModuleName() != ($module = sfConfig::get('sf_login_module'))) 45 52 { 46 $this->redirect($module.'/'.sfConfig::get('sf_login_action'));53 return $this->redirect($module.'/'.sfConfig::get('sf_login_action')); 47 54 } 48 else 49 { 50 $this->getResponse()->setStatusCode(401); 51 } 55 56 $this->getResponse()->setStatusCode(401); 52 57 } 53 58 }