[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:
parent
784781342a
commit
c5a85c5018
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue