@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
2
fork

Configure Feed

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

at recaptime-dev/main 30 lines 698 B view raw
1<?php 2 3final class PhabricatorAuthPasswordUpgradeTransaction 4 extends PhabricatorAuthPasswordTransactionType { 5 6 const TRANSACTIONTYPE = 'password.upgrade'; 7 8 public function generateOldValue($object) { 9 $old_hasher = $this->getEditor()->getOldHasher(); 10 11 if (!$old_hasher) { 12 throw new PhutilInvalidStateException('setOldHasher'); 13 } 14 15 return $old_hasher->getHashName(); 16 } 17 18 public function generateNewValue($object, $value) { 19 return $value; 20 } 21 22 public function getTitle() { 23 return pht( 24 '%s upgraded the hash algorithm for this password from "%s" to "%s".', 25 $this->renderAuthor(), 26 $this->renderOldValue(), 27 $this->renderNewValue()); 28 } 29 30}