--- loncom/auth/lonauth.pm 2022/06/18 02:10:18 1.174 +++ loncom/auth/lonauth.pm 2022/06/26 04:03:47 1.175 @@ -1,7 +1,7 @@ # The LearningOnline Network # User Authentication Module # -# $Id: lonauth.pm,v 1.174 2022/06/18 02:10:18 raeburn Exp $ +# $Id: lonauth.pm,v 1.175 2022/06/26 04:03:47 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -179,11 +179,19 @@ 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'}; + if ($form->{'linkprotuser'}) { + $info{'linkprotuser'} = $form->{'linkprotuser'}; + } + $args = {'only_body' => 1,}; } elsif ($env{'request.linkkey'} ne '') { $info{'linkkey'} = $env{'request.linkkey'}; } @@ -200,9 +208,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) { @@ -276,18 +281,19 @@ ENDJS $args->{'redirect'} = [0,$destination]; $start_page=&Apache::loncommon::start_page('Successful Login', $js,$args); - - my %lt=&Apache::lonlocal::texthash( - 'wel' => 'Welcome', - 'pro' => 'Login problems?', + unless ($env{'request.linkprot'}) { + my %lt=&Apache::lonlocal::texthash( + 'wel' => 'Welcome', + 'pro' => 'Login problems?', ); - $pagebody = "

$lt{'wel'}

\n". - &mt('Welcome to the Learning[_1]Online[_2] Network with CAPA. Please wait while your session is being set up.','',''); - my $loginhelp = &loginhelpdisplay($domain); - if ($loginhelp) { - $pagebody .= '

'.$lt{'pro'}.'

'; + $pagebody = "

$lt{'wel'}

\n". + &mt('Welcome to the Learning[_1]Online[_2] Network with CAPA. Please wait while your session is being set up.','',''); + my $loginhelp = &loginhelpdisplay($domain); + if ($loginhelp) { + $pagebody .= '

'.$lt{'pro'}.'

'; + } } - } + } $end_page = &Apache::loncommon::end_page(); $r->print(<