Merge branch 'master' of git.freeside.biz:/home/git/freeside
authorIvan Kohler <ivan@freeside.biz>
Thu, 7 May 2015 02:10:47 +0000 (19:10 -0700)
committerIvan Kohler <ivan@freeside.biz>
Thu, 7 May 2015 02:10:47 +0000 (19:10 -0700)
FS/FS/contact.pm

index 89bfb74..38b7fd7 100644 (file)
@@ -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 );