summaryrefslogtreecommitdiff
path: root/FS/FS/Password_Mixin.pm
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-11-20 14:52:24 -0800
committerMark Wells <mark@freeside.biz>2015-11-20 14:52:24 -0800
commit42ebaebeafc054ca0c3a924efd7a53154fdcf35e (patch)
tree40b3cc247005876645826689231d87e5591c4a55 /FS/FS/Password_Mixin.pm
parent450d0dec955bf6ae8d7acdc13a8bfc19777089d3 (diff)
password policy enforcement for svc_dsl, #32456
Diffstat (limited to 'FS/FS/Password_Mixin.pm')
-rw-r--r--FS/FS/Password_Mixin.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/Password_Mixin.pm b/FS/FS/Password_Mixin.pm
index 9d5421bfa..393b41629 100644
--- a/FS/FS/Password_Mixin.pm
+++ b/FS/FS/Password_Mixin.pm
@@ -128,7 +128,9 @@ sub insert_password_history {
$auth = $self->_blowfishcrypt( $auth->passphrase );
}
- } elsif ( $encoding eq 'plain' ) {
+ } else {
+ warn "unrecognized password encoding '$encoding'; treating as plain text"
+ unless $encoding eq 'plain';
$auth = $self->_blowfishcrypt( $password );