Development

Changeset 17247

You must first sign up to be able to contribute.

Changeset 17247

Show
Ignore:
Timestamp:
04/13/09 06:12:30 (4 years ago)
Author:
chrodriguez
Message:

Support for remembering uri being referenced

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/crJossoPlugin/trunk/modules/crJossoAuth/lib/BasecrJossoAuthActions.class.php

    r15878 r17247  
    2323    if (!is_null($josso_user)){ 
    2424      $this->getUser()->signIn($agent->accessSession()); 
     25      $original_url=$this->getUser()->getAttribute('JOSSO_ORIGINAL_URL'); 
     26      if (!is_null($original_url)) $this->redirect($original_url); 
    2527      $this->redirect('@homepage'); 
    2628    }else{ 
     
    9294    sfLoader::loadHelpers(array('Url')); 
    9395 
    94     //$this->getUser()->setAttribute('JOSSO_ORIGINAL_URL',$currentUrl); 
     96    $uri=$this->getRequest()->getUri(); 
     97    $this->getUser()->setAttribute('JOSSO_ORIGINAL_URL',$uri); 
    9598    $agent=JossoAgent::getNewInstance(); 
    9699    $securityCheckUrl=url_for(