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