diff --git a/src/applications/passphrase/storage/PassphraseCredential.php b/src/applications/passphrase/storage/PassphraseCredential.php --- a/src/applications/passphrase/storage/PassphraseCredential.php +++ b/src/applications/passphrase/storage/PassphraseCredential.php @@ -1,7 +1,8 @@ openTransaction(); + $secrets = id(new PassphraseSecret())->loadAllWhere( + 'id = %d', + $this->getSecretID()); + foreach ($secrets as $secret) { + $secret->delete(); + } + $this->delete(); + $this->saveTransaction(); + } } diff --git a/src/applications/system/interface/PhabricatorDestructibleInterface.php b/src/applications/system/interface/PhabricatorDestructibleInterface.php --- a/src/applications/system/interface/PhabricatorDestructibleInterface.php +++ b/src/applications/system/interface/PhabricatorDestructibleInterface.php @@ -11,7 +11,7 @@ // TEMPLATE IMPLEMENTATION ///////////////////////////////////////////////////// -/* -( PhabricatorDestructableInterface )----------------------------------- */ +/* -( PhabricatorDestructibleInterface )----------------------------------- */ /* public function destroyObjectPermanently(