3 final class PhabricatorAuthFactorProviderDuoEnrollTransaction
4 extends PhabricatorAuthFactorProviderTransactionType
{
6 const TRANSACTIONTYPE
= 'duo.enroll';
8 public function generateOldValue($object) {
9 $key = PhabricatorDuoAuthFactor
::PROP_ENROLL
;
10 return $object->getAuthFactorProviderProperty($key);
13 public function applyInternalEffects($object, $value) {
14 $key = PhabricatorDuoAuthFactor
::PROP_ENROLL
;
15 $object->setAuthFactorProviderProperty($key, $value);
18 public function getTitle() {
20 '%s changed the enrollment policy for this provider from %s to %s.',
21 $this->renderAuthor(),
22 $this->renderOldValue(),
23 $this->renderNewValue());