diff options
author | Ivan Kohler <ivan@freeside.biz> | 2017-12-15 16:44:06 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2017-12-15 16:44:06 -0800 |
commit | a8ced402afec4f9deb702fd4b056c4ff160b30a0 (patch) | |
tree | 84f9627e8bcadf78de3874807e4f306aa22d7b18 /FS/FS/Password_Mixin.pm | |
parent | c3b6cf5f7d3cbebe31431c7fea74bda7f38e44be (diff) |
fix changing employee password, RT#78939
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 122e3fd..b29cf57 100644 --- a/FS/FS/Password_Mixin.pm +++ b/FS/FS/Password_Mixin.pm @@ -82,7 +82,9 @@ sub is_password_allowed { return '' unless $self->get($self->primary_key); # for validating new passwords pre-insert #check against customer fields - my $cust_main = $self->cust_main; + my $cust_main = $self->table eq 'access_user' + ? $self->user_cust_main + : $self->cust_main; if ($cust_main) { my @words; # words from cust_main |