[FreeBSD] tweaks to account approval flow

- use CC, not TO for awaiting approval
- don't show the approving admin in the accepted email
- use "FreeBSD" as a title
This commit is contained in:
Eitan Adler 2019-04-13 09:17:13 -07:00 committed by Minsoo Choo
parent 784781342a
commit c5a85c5018
Signed by: minsoochoo
GPG key ID: 067C0F6A7D0BDDE3
2 changed files with 4 additions and 10 deletions

View file

@ -772,7 +772,7 @@ final class PhabricatorAuthRegisterController
}
$mail = id(new PhabricatorMetaMTAMail())
->addTos(mpull($admins, 'getPHID'))
->addCCs(mpull($admins, 'getPHID'))
->setSubject($title)
->setBody($body->render())
->saveAndSend();

View file

@ -29,21 +29,15 @@ final class PhabricatorUserApproveTransaction
$body = sprintf(
"%s\n\n %s\n\n",
pht(
'Your %s account (%s) has been approved by %s. You can '.
'Your Phabricator account (%s) has been approved. You can '.
'login here:',
PlatformSymbols::getPlatformServerName(),
$user->getUsername(),
$actor->getUsername()),
$user->getUsername()),
PhabricatorEnv::getProductionURI('/'));
$mail = id(new PhabricatorMetaMTAMail())
->addTos(array($user->getPHID()))
->addCCs(array($actor->getPHID()))
->setSubject(
pht(
'[%s] %s',
PlatformSymbols::getPlatformServerName(),
$title))
->setSubject('[FreeBSD] '.$title)
->setForceDelivery(true)
->setBody($body)
->saveAndSend();