projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
5c1e57f
)
Merge branch 'master' of git.freeside.biz:/home/git/freeside
author
Ivan Kohler
<ivan@freeside.biz>
Sat, 16 Dec 2017 00:43:57 +0000
(16:43 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Sat, 16 Dec 2017 00:43:57 +0000
(16:43 -0800)
FS/FS/Password_Mixin.pm
patch
|
blob
|
history
diff --git
a/FS/FS/Password_Mixin.pm
b/FS/FS/Password_Mixin.pm
index
122e3fd
..
b29cf57
100644
(file)
--- 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