[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()) $mail = id(new PhabricatorMetaMTAMail())
->addTos(mpull($admins, 'getPHID')) ->addCCs(mpull($admins, 'getPHID'))
->setSubject($title) ->setSubject($title)
->setBody($body->render()) ->setBody($body->render())
->saveAndSend(); ->saveAndSend();

View file

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