]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Patch for bug 166755; improve checksetup.pl's error message when asking for administr...
authorjocuri%softhome.net <>
Fri, 27 Feb 2004 19:01:51 +0000 (19:01 +0000)
committerjocuri%softhome.net <>
Fri, 27 Feb 2004 19:01:51 +0000 (19:01 +0000)
checksetup.pl

index 2a6a6b0197fce16cb00c764c740a6377b8fe3613..6b0f1d6fa4ae355981088ba4f98a8089dceded15 100755 (executable)
@@ -2024,8 +2024,10 @@ _End_Of_SQL_
         chomp $pass1;
         if(! $pass1 ) {
           print "\n\nIt's just plain stupid to not have a password.  Try again!\n";
-        } elsif ( $pass1 !~ /^.{3,16}$/ ) {
-          print "The password must be 3-16 characters in length.";
+        } elsif ( $pass1 !~ /^[a-zA-Z0-9-_]{3,16}$/ ) {
+          print "\n\nThe password must be 3-16 characters in length, " .
+                "and it may\ncontain only letters, digits, " .
+                "underscores (_), and hyphens (-).\n";
         }
       }
       print "\nPlease retype the password to verify: ";