@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at recaptime-dev/main 32 lines 726 B view raw
1<?php 2 3final class PhabricatorAuthPasswordRevokeTransaction 4 extends PhabricatorAuthPasswordTransactionType { 5 6 const TRANSACTIONTYPE = 'password.revoke'; 7 8 public function generateOldValue($object) { 9 return (bool)$object->getIsRevoked(); 10 } 11 12 public function generateNewValue($object, $value) { 13 return (bool)$value; 14 } 15 16 public function applyInternalEffects($object, $value) { 17 $object->setIsRevoked((int)$value); 18 } 19 20 public function getTitle() { 21 if ($this->getNewValue()) { 22 return pht( 23 '%s revoked this password.', 24 $this->renderAuthor()); 25 } else { 26 return pht( 27 '%s removed this password from the revocation list.', 28 $this->renderAuthor()); 29 } 30 } 31 32}