summaryrefslogtreecommitdiff
path: root/FS/FS/contact.pm
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-05-06 19:09:06 -0700
committerIvan Kohler <ivan@freeside.biz>2015-05-06 19:09:06 -0700
commita9129b5b8b7a69d1d0a7fce6dc9d72665eaec568 (patch)
tree35c669b5b59596ef5531b06339cd09a833a6a543 /FS/FS/contact.pm
parented98fabaf7bc3f2127ca33e465632312bd8815fc (diff)
don't send when password is supplied, RT#34705
Diffstat (limited to 'FS/FS/contact.pm')
-rw-r--r--FS/FS/contact.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/FS/FS/contact.pm b/FS/FS/contact.pm
index 89bfb74..38b7fd7 100644
--- a/FS/FS/contact.pm
+++ b/FS/FS/contact.pm
@@ -259,7 +259,10 @@ sub insert {
}
if ( $link_hash{'selfservice_access'} eq 'R'
- or ( $link_hash{'selfservice_access'} && $cust_contact )
+ or ( $link_hash{'selfservice_access'}
+ && $cust_contact
+ && ! length($self->_password)
+ )
)
{
my $error = $self->send_reset_email( queue=>1 );