diff options
author | Mark Wells <mark@freeside.biz> | 2015-11-20 14:52:24 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-11-20 14:53:24 -0800 |
commit | 803f699c6185f061b741d1c7687a482b9ae57520 (patch) | |
tree | 1eb70677aab77f393115748fd6a2c6a6b79d5e6f /FS/FS/Password_Mixin.pm | |
parent | 1ed7b05956d7a2914d10728146fefee41362c867 (diff) |
password policy enforcement for svc_dsl, #32456
Diffstat (limited to 'FS/FS/Password_Mixin.pm')
-rw-r--r-- | FS/FS/Password_Mixin.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/Password_Mixin.pm b/FS/FS/Password_Mixin.pm index 9d5421b..393b416 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 ); |