Skip to content
Permalink
Browse files

Always send an accountinfo message on 'Send account info'.

  • Loading branch information
kohler committed Jan 11, 2020
1 parent ceb2280 commit d2a26ae548a581feb3f1f598d6d4be71eb2bb4d9
Showing with 2 additions and 6 deletions.
  1. +1 −5 src/contact.php
  2. +1 −1 src/useractions.php
@@ -1648,11 +1648,7 @@ function sendAccountInfo($sendtype, $sensitive) {
$template = "@resetpassword";
}
} else {
if ($this->plaintext_password()) {
$template = "@accountinfo";
} else {
return false;
}
$template = "@accountinfo";
}

$mailer = new HotCRPMailer($this->conf, $this, null, $rest);
@@ -79,7 +79,7 @@ static function send_account_info(Contact $user, $ids) {
$result = $user->conf->qe("select * from ContactInfo where contactId?a", $ids);
while (($xuser = Contact::fetch($result, $user->conf))) {
if (!$xuser->is_disabled()) {
$xuser->sendAccountInfo("send", false);
$xuser->sendAccountInfo("notify", false);
$done[] = $xuser->email;
} else {
$disabled[] = $xuser->email;

0 comments on commit d2a26ae

Please sign in to comment.
You can’t perform that action at this time.