summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-05-06 19:09:10 -0700
committerIvan Kohler <ivan@freeside.biz>2015-05-06 19:09:10 -0700
commit832ae1aae9af2f15dc9b513c6505db25462ac511 (patch)
treeee81a77fbfa4214ac9ec2cee5be94628826ba6c9
parent86637503b5608164cf31aea501f131c74e27b724 (diff)
don't send when password is supplied, RT#34705
-rw-r--r--FS/FS/contact.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/contact.pm b/FS/FS/contact.pm
index e004cf8eb..96632ff49 100644
--- a/FS/FS/contact.pm
+++ b/FS/FS/contact.pm
@@ -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;