projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
8d5366c
)
fix quick crypt_password bug when its passwd an empty param
author
ivan
<ivan>
Sun, 22 May 2005 23:38:23 +0000
(23:38 +0000)
committer
ivan
<ivan>
Sun, 22 May 2005 23:38:23 +0000
(23:38 +0000)
FS/FS/svc_acct.pm
patch
|
blob
|
history
diff --git
a/FS/FS/svc_acct.pm
b/FS/FS/svc_acct.pm
index
6e4213d
..
a045193
100644
(file)
--- a/
FS/FS/svc_acct.pm
+++ b/
FS/FS/svc_acct.pm
@@
-1327,7
+1327,7
@@
sub crypt_password {
{
$self->_password;
} else {
{
$self->_password;
} else {
- my $encryption =
scalar(@_
) ? shift : 'crypt';
+ my $encryption =
( scalar(@_) && $_[0]
) ? shift : 'crypt';
if ( $encryption eq 'crypt' ) {
crypt(
$self->_password,
if ( $encryption eq 'crypt' ) {
crypt(
$self->_password,