--- loncom/auth/lonlogin.pm 2021/11/03 01:04:02 1.193 +++ loncom/auth/lonlogin.pm 2022/02/24 15:51:28 1.195 @@ -1,7 +1,7 @@ # The LearningOnline Network # Login Screen # -# $Id: lonlogin.pm,v 1.193 2021/11/03 01:04:02 raeburn Exp $ +# $Id: lonlogin.pm,v 1.195 2022/02/24 15:51:28 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -659,6 +659,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'; } @@ -812,10 +813,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 } @@ -858,7 +863,8 @@ HEADER } my $ssohref; if ($samlssoimg ne '') { - $ssohref = ''.$samlssoalt.''; + $ssohref = ''. + ''.$samlssoalt.''; } else { $ssohref = ''.$samlssotext.''; } @@ -913,7 +919,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(<