[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
f00d18c978
commit
bc137b6141
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue