version 1.14, 2008/09/15 19:08:44
|
version 1.16, 2009/07/23 17:40:29
|
Line 89 sub handler {
|
Line 89 sub handler {
|
|
|
my $extra_env = &sso_check(\%data); |
my $extra_env = &sso_check(\%data); |
|
|
|
my %form; |
|
if ($data{'symb'} ne '') { |
|
$form{'symb'} = $data{'symb'}; |
|
} |
|
|
if (!$data{'role'}) { |
if (!$data{'role'}) { |
my $handle = &Apache::lonnet::check_for_valid_session($r); |
my $handle = &Apache::lonnet::check_for_valid_session($r); |
if ($handle) { |
if ($handle) { |
Line 107 sub handler {
|
Line 112 sub handler {
|
$desturl = $data{'origurl'}; |
$desturl = $data{'origurl'}; |
} |
} |
&Apache::lonauth::success($r,$data{'username'},$data{'domain'}, |
&Apache::lonauth::success($r,$data{'username'},$data{'domain'}, |
$home,$desturl,$extra_env); |
$home,$desturl,$extra_env,\%form); |
|
|
} |
} |
return OK; |
return OK; |
Line 115 sub handler {
|
Line 120 sub handler {
|
} |
} |
|
|
my $next_url='/adm/roles?selectrole=1&'.&escape($data{'role'}).'=1'; |
my $next_url='/adm/roles?selectrole=1&'.&escape($data{'role'}).'=1'; |
|
if ($data{'origurl'} ne '') { |
|
$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); |
$next_url,$extra_env,\%form); |
return OK; |
return OK; |
} |
} |
|
|