[LON-CAPA-cvs] cvs: loncom /interface lonuserutils.pm
raeburn
raeburn at source.lon-capa.org
Mon Aug 23 16:10:40 EDT 2021
raeburn Mon Aug 23 20:10:40 2021 EDT
Modified files:
/loncom/interface lonuserutils.pm
Log:
- If record(s) in uploaded CSV data contain fewer than 7 characters in column
identified as password field, warning message now includes number 7 when a
minimum is yet to be specified in the domain config; system default (7) used.
Index: loncom/interface/lonuserutils.pm
diff -u loncom/interface/lonuserutils.pm:1.207 loncom/interface/lonuserutils.pm:1.208
--- loncom/interface/lonuserutils.pm:1.207 Wed Jul 8 14:26:37 2020
+++ loncom/interface/lonuserutils.pm Mon Aug 23 20:10:40 2021
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Utility functions for managing LON-CAPA user accounts
#
-# $Id: lonuserutils.pm,v 1.207 2020/07/08 14:26:37 raeburn Exp $
+# $Id: lonuserutils.pm,v 1.208 2021/08/23 20:10:40 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -5190,7 +5190,11 @@
my %passwdconf = &Apache::lonnet::get_passwdconf($domain);
$warning = '<b>'.&mt('Password requirement(s) unmet for one or more users:').'</b><ul>';
if ($showrules{'min'}) {
- $warning .= '<li>'.&mt('minimum [quant,_1,character]',$passwdconf{'min'}).'</li>';
+ my $min = $passwdconf{'min'};
+ if ($min eq '') {
+ $min = $Apache::lonnet::passwdmin;
+ }
+ $warning .= '<li>'.&mt('minimum [quant,_1,character]',$min).'</li>';
}
if ($showrules{'max'}) {
$warning .= '<li>'.&mt('maximum [quant,_1,character]',$passwdconf{'max'}).'</li>';
More information about the LON-CAPA-cvs
mailing list