--- loncom/interface/domainprefs.pm 2020/01/15 16:55:18 1.160.6.102.2.1
+++ loncom/interface/domainprefs.pm 2020/02/12 23:06:16 1.160.6.102.2.3
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to set domain-wide configuration settings
#
-# $Id: domainprefs.pm,v 1.160.6.102.2.1 2020/01/15 16:55:18 raeburn Exp $
+# $Id: domainprefs.pm,v 1.160.6.102.2.3 2020/02/12 23:06:16 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -742,6 +742,7 @@ sub print_config_box {
if ($numheaders > 1) {
my $colspan = '';
my $rightcolspan = '';
+ my $leftnobr = '';
if (($action eq 'rolecolors') || ($action eq 'defaults') ||
($action eq 'directorysrch') ||
(($action eq 'login') && ($numheaders < 4))) {
@@ -750,12 +751,15 @@ sub print_config_box {
if ($action eq 'usersessions') {
$rightcolspan = ' colspan="3"';
}
+ if ($action eq 'passwords') {
+ $leftnobr = ' LC_nobreak';
+ }
$output .= '
-
'.&mt($item->{'header'}->[0]->{'col1'}).'
+
'.&mt($item->{'header'}->[0]->{'col1'}).'
'.&mt($item->{'header'}->[0]->{'col2'}).'
';
$rowtotal ++;
@@ -814,7 +818,7 @@ sub print_config_box {
-
'.&mt($item->{'header'}->[2]->{'col1'}).'
+
'.&mt($item->{'header'}->[2]->{'col1'}).'
'.&mt($item->{'header'}->[2]->{'col2'}).'
'."\n";
if ($action eq 'coursecategories') {
@@ -4759,7 +4763,7 @@ sub print_passwords {
$datatable .= ''.
- ' ';
+ ' ';
}
}
my $checkedcase;
@@ -4863,7 +4867,7 @@ sub print_passwords {
&mt('(If you use the same account ... reset a password from this page.)').'
'.&mt('[_1] set to [_2]',$titles{$rule},$confighash{'passwords'}{$rule}).'
';
}
}
+ if (ref($confighash{'passwords'}{'chars'}) eq 'ARRAY') {
+ if (@{$confighash{'passwords'}{'chars'}} > 0) {
+ my %rulenames = &Apache::lonlocal::texthash(
+ uc => 'At least one upper case letter',
+ lc => 'At least one lower case letter',
+ num => 'At least one number',
+ spec => 'At least one non-alphanumeric',
+ );
+ my $needed = '