From: Ivan Kohler Date: Thu, 7 May 2015 02:09:06 +0000 (-0700) Subject: don't send when password is supplied, RT#34705 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=a9129b5b8b7a69d1d0a7fce6dc9d72665eaec568 don't send when password is supplied, RT#34705 --- 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 );