[LON-CAPA-cvs] cvs: loncom /interface domainprefs.pm

raeburn raeburn at source.lon-capa.org
Sun Aug 25 09:37:38 EDT 2019


raeburn		Sun Aug 25 13:37:38 2019 EDT

  Modified files:              
    /loncom/interface	domainprefs.pm 
  Log:
  - Minimum password length is an integer.
  
  
Index: loncom/interface/domainprefs.pm
diff -u loncom/interface/domainprefs.pm:1.365 loncom/interface/domainprefs.pm:1.366
--- loncom/interface/domainprefs.pm:1.365	Sun Aug 25 02:42:55 2019
+++ loncom/interface/domainprefs.pm	Sun Aug 25 13:37:37 2019
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set domain-wide configuration settings
 #
-# $Id: domainprefs.pm,v 1.365 2019/08/25 02:42:55 raeburn Exp $
+# $Id: domainprefs.pm,v 1.366 2019/08/25 13:37:37 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -9340,7 +9340,7 @@
                 alert('$intalert{passmin}');
                 field.value = '$defmin';
             }
-            var minval = parseFloat(field.value,10);
+            var minval = parseInt(field.value,10);
             if (minval < $defmin) {
                 alert('$intalert{passmin}');
                 field.value = '$defmin';




More information about the LON-CAPA-cvs mailing list