don't send when password is supplied, RT#34705
authorIvan Kohler <ivan@freeside.biz>
Thu, 7 May 2015 02:09:10 +0000 (19:09 -0700)
committerIvan Kohler <ivan@freeside.biz>
Thu, 7 May 2015 02:09:10 +0000 (19:09 -0700)
FS/FS/contact.pm

index e004cf8..96632ff 100644 (file)
@@ -179,7 +179,7 @@ sub insert {
     }
   }
 
-  if ( $self->selfservice_access ) {
+  if ( $self->selfservice_access && ! length($self->_password) ) {
     my $error = $self->send_reset_email( queue=>1 );
     if ( $error ) {
       $dbh->rollback if $oldAutoCommit;