--- loncom/auth/lonlogin.pm 2021/12/12 11:47:03 1.158.2.13 +++ loncom/auth/lonlogin.pm 2022/02/24 16:00:23 1.158.2.15 @@ -1,7 +1,7 @@ # The LearningOnline Network # Login Screen # -# $Id: lonlogin.pm,v 1.158.2.13 2021/12/12 11:47:03 raeburn Exp $ +# $Id: lonlogin.pm,v 1.158.2.15 2022/02/24 16:00:23 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -538,6 +538,7 @@ function toggleLClogin() { if (document.getElementById('LC_login_text')) { document.getElementById('LC_login_text').innerHTML = '$samlnonsso'; } + if ( document.client.uname ) { document.client.uname.focus(); } if (document.getElementById('LC_SSO_login')) { document.getElementById('LC_SSO_login').style.display = 'none'; } @@ -691,10 +692,14 @@ ENDSERVERFORM LFORM if ($showbanner) { + my $alttext = &Apache::loncommon::designparm('login.alttext_img',$domain); + if ($alttext eq '') { + $alttext = 'The Learning Online Network with CAPA'; + } $r->print(<
- The Learning Online Network with CAPA + $alttext
HEADER } @@ -730,7 +735,8 @@ HEADER } my $ssohref; if ($samlssoimg ne '') { - $ssohref = ''.$samlssoalt.''; + $ssohref = ''. + ''.$samlssoalt.''; } else { $ssohref = ''.$samlssotext.''; } @@ -780,7 +786,8 @@ ENDSAML ENDLOGIN $r->print('
'."\n"); if ($showmainlogo) { - $r->print(' '."\n"); + my $alttext = &Apache::loncommon::designparm('login.alttext_logo',$domain); + $r->print(' '."\n"); } $r->print(<