Diff for /loncom/auth/migrateuser.pm between versions 1.10 and 1.11

version 1.10, 2007/01/12 15:44:27 version 1.11, 2007/09/29 02:09:50
Line 87  sub handler { Line 87  sub handler {
     my $extra_env = &sso_check(\%data);      my $extra_env = &sso_check(\%data);
   
     if (!$data{'role'}) {      if (!$data{'role'}) {
  &Apache::lonauth::success($r,$data{'username'},$data{'domain'},   # check for exisiting valid session 
   $home,'/adm/roles',$extra_env);   my %cookies=CGI::Cookie->parse($r->header_in('Cookie'));
    my $lonid=$cookies{'lonID'};
    my $handle;
    if ($lonid) {
       $handle=&LONCAPA::clean_handle($lonid->value);
    }
    if ($lonid 
       && -e $r->dir_config('lonIDsDir').'/'.$handle.'.id' 
       && $handle ne '') {
       &Apache::lonnet::transfer_profile_to_env($r->dir_config('lonIDsDir'),
        $handle);
       if ($env{'request.course.id'}) {
    $r->internal_redirect('/adm/navmaps');
       } else {
    $r->internal_redirect('/adm/roles');
       }
    } else {
       &Apache::lonauth::success($r,$data{'username'},$data{'domain'},
         $home,'/adm/roles',$extra_env);
   
    }
  return OK;   return OK;
   
     }      }
   
     my $next_url='/adm/roles?selectrole=1&'.&escape($data{'role'}).'=1';      my $next_url='/adm/roles?selectrole=1&'.&escape($data{'role'}).'=1';

Removed from v.1.10  
changed lines
  Added in v.1.11


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>