diff options
author | Mark Wells <mark@freeside.biz> | 2016-12-07 16:56:47 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2016-12-07 16:56:47 -0800 |
commit | 8b9017962e8f337554f9d15f513ede606f8725e2 (patch) | |
tree | a52714cbd0c568936a29d9c831e84a91e90703a6 | |
parent | 9813252ec987e72242efa564c7a927b111f9222a (diff) |
silence a warning when creating contacts
-rw-r--r-- | FS/FS/Password_Mixin.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/FS/FS/Password_Mixin.pm b/FS/FS/Password_Mixin.pm index 2e400ec9d..963fa542b 100644 --- a/FS/FS/Password_Mixin.pm +++ b/FS/FS/Password_Mixin.pm @@ -212,8 +212,9 @@ sub insert_password_history { } } else { - warn "unrecognized password encoding '$encoding'; treating as plain text" - unless $encoding eq 'plain'; + if ($encoding and $encoding ne 'plain') { + warn "unrecognized password encoding '$encoding'; treating as plain text"; + } $auth = $self->_blowfishcrypt( $password ); |