Diff for /loncom/auth/migrateuser.pm between versions 1.20 and 1.21

version 1.20, 2013/12/30 20:55:42 version 1.21, 2014/10/04 02:59:32
Line 77  sub ip_changed { Line 77  sub ip_changed {
         my $rule_in_effect;          my $rule_in_effect;
         if ($frombalancer) {          if ($frombalancer) {
             my $balancerdom = &Apache::lonnet::host_domain($dataref->{'server'});              my $balancerdom = &Apache::lonnet::host_domain($dataref->{'server'});
               if ($dataref->{'sso.login'}) {
                   if (&Apache::lonnet::domain($dataref->{'domain'})) {
                       $balancerdom = $dataref->{'domain'};
                   }
               }
             my ($result,$cached)=&Apache::lonnet::is_cached_new('loadbalancing',$balancerdom);              my ($result,$cached)=&Apache::lonnet::is_cached_new('loadbalancing',$balancerdom);
             unless (defined($cached)) {              unless (defined($cached)) {
                 my $cachetime = 60*60*24;                   my $cachetime = 60*60*24; 
Line 140  sub ip_changed { Line 145  sub ip_changed {
             }              }
         }          }
         if ($dataref->{'sso.login'}) {          if ($dataref->{'sso.login'}) {
             $url .= '/adm/roles?';              $url .= '/adm/roles';
         } else {          } else {
             $url .= '/adm/login?';              $url .= '/adm/login';
             $message .= '<br />'.&mt('You will need to provide your password one more time.');              $message .= '<br />'.&mt('You will need to provide your password one more time.');
         }          }
         my %info= (          my %info= (
Line 159  sub ip_changed { Line 164  sub ip_changed {
         }          }
         my $iptoken = &Apache::lonnet::tmpput(\%info,$switchto);          my $iptoken = &Apache::lonnet::tmpput(\%info,$switchto);
         unless ($iptoken eq 'conlost') {          unless ($iptoken eq 'conlost') {
             $url .= 'iptoken='.$iptoken;              $url .= '?iptoken='.$iptoken;
         }          }
         $r->print(&Apache::loncommon::start_page($title,undef,          $r->print(&Apache::loncommon::start_page($title,undef,
                                                  {'redirect' =>                                                   {'redirect' =>
Line 206  sub handler { Line 211  sub handler {
     if ($data{'symb'} ne '') {      if ($data{'symb'} ne '') {
         $form{'symb'} = $data{'symb'};          $form{'symb'} = $data{'symb'};
     }      }
       if ($data{'iptoken'} ne '') {
           $form{'iptoken'} = $data{'iptoken'};
       }
   
     if (!$data{'role'}) {      if (!$data{'role'}) {
  my $handle = &Apache::lonnet::check_for_valid_session($r);   my $handle = &Apache::lonnet::check_for_valid_session($r);

Removed from v.1.20  
changed lines
  Added in v.1.21


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>
500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.