Diff for /loncom/auth/migrateuser.pm between versions 1.25.2.1 and 1.25.2.2

version 1.25.2.1, 2019/08/01 15:38:36 version 1.25.2.2, 2020/05/02 17:35:40
Line 257  sub handler { Line 257  sub handler {
         }          }
     }      }
   
     my %form;      my (%form,$cid);
     if ($data{'symb'} ne '') {      if ($data{'symb'} ne '') {
         $form{'symb'} = $data{'symb'};          $form{'symb'} = $data{'symb'};
     }      }
Line 267  sub handler { Line 267  sub handler {
     if ($data{'noloadbalance'} ne '') {      if ($data{'noloadbalance'} ne '') {
         $form{'noloadbalance'} = $data{'noloadbalance'};          $form{'noloadbalance'} = $data{'noloadbalance'};
     }      }
       if ($data{'role'}) {
     if (!$data{'role'}) {          if ($data{'role'} =~ m{\./($match_domain)/($match_courseid)(?:/\w+|$)}) {
               unless (&Apache::lonnet::homeserver($2,$1) eq 'no_host') {
                   $cid = $1.'_'.$2;
               }
           }
       } else {
  my $handle = &Apache::lonnet::check_for_valid_session($r);   my $handle = &Apache::lonnet::check_for_valid_session($r);
  if ($handle) {   if ($handle) {
     &Apache::lonnet::transfer_profile_to_env($r->dir_config('lonIDsDir'),      &Apache::lonnet::transfer_profile_to_env($r->dir_config('lonIDsDir'),
Line 298  sub handler { Line 303  sub handler {
         $next_url .= '&orgurl='.&escape($data{'origurl'});          $next_url .= '&orgurl='.&escape($data{'origurl'});
     }      }
     &Apache::lonauth::success($r,$data{'username'},$data{'domain'},$home,      &Apache::lonauth::success($r,$data{'username'},$data{'domain'},$home,
       $next_url,$extra_env,\%form);        $next_url,$extra_env,\%form,$cid);
     return OK;      return OK;
 }  }
   

Removed from v.1.25.2.1  
changed lines
  Added in v.1.25.2.2


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