summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FS/FS/Password_Mixin.pm5
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 );