From a9129b5b8b7a69d1d0a7fce6dc9d72665eaec568 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Wed, 6 May 2015 19:09:06 -0700 Subject: [PATCH] don't send when password is supplied, RT#34705 --- FS/FS/contact.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/FS/FS/contact.pm b/FS/FS/contact.pm index 89bfb745b..38b7fd7b7 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 ); -- 2.11.0