3 final class PhabricatorPasswordDestructionEngineExtension
4 extends PhabricatorDestructionEngineExtension
{
6 const EXTENSIONKEY
= 'passwords';
8 public function getExtensionName() {
9 return pht('Passwords');
12 public function destroyObject(
13 PhabricatorDestructionEngine
$engine,
16 $viewer = $engine->getViewer();
17 $object_phid = $object->getPHID();
19 $passwords = id(new PhabricatorAuthPasswordQuery())
21 ->withObjectPHIDs(array($object_phid))
24 foreach ($passwords as $password) {
25 $engine->destroyObject($password);