better error message for "Illegal password"
authorivan <ivan>
Tue, 28 May 2002 21:22:15 +0000 (21:22 +0000)
committerivan <ivan>
Tue, 28 May 2002 21:22:15 +0000 (21:22 +0000)
FS/FS/svc_acct.pm
bin/populate-msgcat

index 17ae415..a43f97a 100644 (file)
@@ -676,7 +676,9 @@ sub check {
     $recref->{_password} = '!!';
   } else {
     #return "Illegal password";
-    return gettext('illegal_password'). ": ". $recref->{_password};
+    return gettext('illegal_password'). "$passwordmin-$passwordmax".
+           FS::Msgcat::_gettext('illegal_password_characters').
+           ": ". $recref->{_password};
   }
 
   ''; #no error
index b50fc7e..166f837 100755 (executable)
@@ -76,7 +76,11 @@ sub messages {
     },
 
     'illegal_password' => {
-      'en_US' => 'Illegal password',
+      'en_US' => 'Illegal password (',
+    },
+
+    'illeggal_password_characters' => {
+      'en_US' => ' characters)',
     },
 
     'username_in_use' => {