projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ee1a01a
)
better error message for "Illegal password"
author
ivan
<ivan>
Tue, 28 May 2002 21:22:15 +0000
(21:22 +0000)
committer
ivan
<ivan>
Tue, 28 May 2002 21:22:15 +0000
(21:22 +0000)
FS/FS/svc_acct.pm
patch
|
blob
|
history
bin/populate-msgcat
patch
|
blob
|
history
diff --git
a/FS/FS/svc_acct.pm
b/FS/FS/svc_acct.pm
index
17ae415
..
a43f97a
100644
(file)
--- a/
FS/FS/svc_acct.pm
+++ b/
FS/FS/svc_acct.pm
@@
-676,7
+676,9
@@
sub check {
$recref->{_password} = '!!';
} else {
#return "Illegal password";
$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
}
''; #no error
diff --git
a/bin/populate-msgcat
b/bin/populate-msgcat
index
b50fc7e
..
166f837
100755
(executable)
--- a/
bin/populate-msgcat
+++ b/
bin/populate-msgcat
@@
-76,7
+76,11
@@
sub messages {
},
'illegal_password' => {
},
'illegal_password' => {
- 'en_US' => 'Illegal password',
+ 'en_US' => 'Illegal password (',
+ },
+
+ 'illeggal_password_characters' => {
+ 'en_US' => ' characters)',
},
'username_in_use' => {
},
'username_in_use' => {