version 1.45, 2019/06/16 22:27:06
|
version 1.46, 2020/03/15 23:04:11
|
Line 671 sub handler {
|
Line 671 sub handler {
|
} |
} |
} |
} |
|
|
my %form; |
my (%form,$cid); |
if ($data{'symb'} ne '') { |
if ($data{'symb'} ne '') { |
$form{'symb'} = $data{'symb'}; |
$form{'symb'} = $data{'symb'}; |
} |
} |
Line 681 sub handler {
|
Line 681 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 915 sub handler {
|
Line 920 sub handler {
|
$r->internal_redirect($next_url); |
$r->internal_redirect($next_url); |
} else { |
} else { |
&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; |
} |
} |