[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
parent f00d18c978
commit bc137b6141
2 changed files with 4 additions and 6 deletions

View file

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

View file

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