--- loncom/interface/loncommon.pm 2019/05/05 23:19:47 1.1331 +++ loncom/interface/loncommon.pm 2019/05/11 21:34:01 1.1332 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.1331 2019/05/05 23:19:47 raeburn Exp $ +# $Id: loncommon.pm,v 1.1332 2019/05/11 21:34:01 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -3597,7 +3597,7 @@ sub check_passwd_rules { } } if ($rules{'lc'}) { - unless ($plainpass =~ /a-z/) { + unless ($plainpass =~ /[a-z]/) { push(@brokerule,'lc'); } } @@ -3633,6 +3633,9 @@ sub check_passwd_rules { } $warning .= ''; } + if (wantarray) { + return @brokerule; + } return $warning; }