--- loncom/auth/lonlogin.pm 2021/12/31 21:56:01 1.158.2.13.2.1 +++ loncom/auth/lonlogin.pm 2022/02/24 16:43:39 1.158.2.13.2.3 @@ -1,7 +1,7 @@ # The LearningOnline Network # Login Screen # -# $Id: lonlogin.pm,v 1.158.2.13.2.1 2021/12/31 21:56:01 raeburn Exp $ +# $Id: lonlogin.pm,v 1.158.2.13.2.3 2022/02/24 16:43:39 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -654,6 +654,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'; } @@ -807,10 +808,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 } @@ -853,7 +858,8 @@ HEADER } my $ssohref; if ($samlssoimg ne '') { - $ssohref = ''.$samlssoalt.''; + $ssohref = ''. + ''.$samlssoalt.''; } else { $ssohref = ''.$samlssotext.''; } @@ -908,7 +914,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(<