version 1.92, 2017/04/08 14:58:11
|
version 1.93, 2018/03/23 01:01:21
|
Line 1277 sub gather_authenitems {
|
Line 1277 sub gather_authenitems {
|
$curr_authtype = 'int'; |
$curr_authtype = 'int'; |
} elsif ($enrollvar->{'authtype'} eq 'localauth' ) { |
} elsif ($enrollvar->{'authtype'} eq 'localauth' ) { |
$curr_authtype = 'loc'; |
$curr_authtype = 'loc'; |
|
} elsif ($enrollvar->{'authtype'} eq 'lti' ) { |
|
$curr_authtype = 'lti'; |
} |
} |
} |
} |
unless ($curr_authtype eq '') { |
unless ($curr_authtype eq '') { |
Line 1297 sub gather_authenitems {
|
Line 1299 sub gather_authenitems {
|
$authform{'krb'} = &Apache::loncommon::authform_kerberos(%param); |
$authform{'krb'} = &Apache::loncommon::authform_kerberos(%param); |
$authform{'int'} = &Apache::loncommon::authform_internal(%param); |
$authform{'int'} = &Apache::loncommon::authform_internal(%param); |
$authform{'loc'} = &Apache::loncommon::authform_local(%param); |
$authform{'loc'} = &Apache::loncommon::authform_local(%param); |
foreach my $item ('krb','int','loc') { |
$authform{'lti'} = &Apache::loncommon::authform_lti(%param); |
|
foreach my $item ('krb','int','loc','lti') { |
if ($authform{$item} ne '') { |
if ($authform{$item} ne '') { |
$authenitems .= $authform{$item}.'<br />'; |
$authenitems .= $authform{$item}.'<br />'; |
} |
} |
Line 1363 sub modify_course {
|
Line 1366 sub modify_course {
|
if ((defined($env{'form.locarg'})) && ($env{'form.locarg'})) { |
if ((defined($env{'form.locarg'})) && ($env{'form.locarg'})) { |
$newattr{'autharg'} = $env{'form.locarg'}; |
$newattr{'autharg'} = $env{'form.locarg'}; |
} |
} |
|
} elsif ($env{'form.login'} eq 'lti') { |
|
$newattr{'authtype'} = 'lti'; |
} |
} |
if ( $newattr{'authtype'}=~ /^krb/) { |
if ( $newattr{'authtype'}=~ /^krb/) { |
if ($newattr{'autharg'} eq '') { |
if ($newattr{'autharg'} eq '') { |