--- loncom/auth/lonauth.pm 2022/02/27 01:43:13 1.172 +++ loncom/auth/lonauth.pm 2022/06/30 21:04:13 1.176 @@ -1,7 +1,7 @@ # The LearningOnline Network # User Authentication Module # -# $Id: lonauth.pm,v 1.172 2022/02/27 01:43:13 raeburn Exp $ +# $Id: lonauth.pm,v 1.176 2022/06/30 21:04:13 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -179,11 +179,21 @@ sub success { $destination .= 'source=login'; } + my $brcrum = [{'href' => '', + 'text' => 'Successful Login'},]; + my $args = {'no_inline_link' => 1, + 'bread_crumbs' => $brcrum,}; if (($env{'request.deeplink.login'} eq $lowerurl) && (($env{'request.linkprot'}) || ($env{'request.linkkey'} ne ''))) { my %info; if ($env{'request.linkprot'}) { $info{'linkprot'} = $env{'request.linkprot'}; + foreach my $item ('linkprotuser','linkprotexit') { + if ($form->{$item}) { + $info{$item} = $form->{$item}; + } + } + $args = {'only_body' => 1,}; } elsif ($env{'request.linkkey'} ne '') { $info{'linkkey'} = $env{'request.linkkey'}; } @@ -200,9 +210,6 @@ sub success { $windowname .= 'lti'; } my $windowinfo = Apache::lonhtmlcommon::scripttag('self.name="'.$windowname.'";'); - my $brcrum = [{'href' => '', - 'text' => 'Successful Login'},]; - my $args = {'bread_crumbs' => $brcrum,}; unless ((defined($form->{role})) || (defined($form->{symb}))) { my $update=$env{'user.update.time'}; if (!$update) { @@ -248,6 +255,7 @@ sub success { if ($env{'request.lti.target'} eq '') { my $ltitarget = (($destination =~ /\?/) ? '&' : '?'). 'ltitarget=iframe'; + &js_escape(\$destination); $js = <<"ENDJS";