diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -2093,6 +2093,7 @@ 'PhabricatorAuthPasswordEditor' => 'applications/auth/editor/PhabricatorAuthPasswordEditor.php', 'PhabricatorAuthPasswordEngine' => 'applications/auth/engine/PhabricatorAuthPasswordEngine.php', 'PhabricatorAuthPasswordException' => 'applications/auth/password/PhabricatorAuthPasswordException.php', + 'PhabricatorAuthPasswordHashInterface' => 'applications/auth/password/PhabricatorAuthPasswordHashInterface.php', 'PhabricatorAuthPasswordPHIDType' => 'applications/auth/phid/PhabricatorAuthPasswordPHIDType.php', 'PhabricatorAuthPasswordQuery' => 'applications/auth/query/PhabricatorAuthPasswordQuery.php', 'PhabricatorAuthPasswordResetTemporaryTokenType' => 'applications/auth/tokentype/PhabricatorAuthPasswordResetTemporaryTokenType.php', @@ -3494,7 +3495,6 @@ 'PhabricatorPassphraseApplication' => 'applications/passphrase/application/PhabricatorPassphraseApplication.php', 'PhabricatorPasswordAuthProvider' => 'applications/auth/provider/PhabricatorPasswordAuthProvider.php', 'PhabricatorPasswordDestructionEngineExtension' => 'applications/auth/extension/PhabricatorPasswordDestructionEngineExtension.php', - 'PhabricatorPasswordHashInterface' => 'applications/auth/password/PhabricatorPasswordHashInterface.php', 'PhabricatorPasswordHasher' => 'infrastructure/util/password/PhabricatorPasswordHasher.php', 'PhabricatorPasswordHasherTestCase' => 'infrastructure/util/password/__tests__/PhabricatorPasswordHasherTestCase.php', 'PhabricatorPasswordHasherUnavailableException' => 'infrastructure/util/password/PhabricatorPasswordHasherUnavailableException.php', @@ -9993,7 +9993,7 @@ 'PhabricatorFulltextInterface', 'PhabricatorFerretInterface', 'PhabricatorConduitResultInterface', - 'PhabricatorPasswordHashInterface', + 'PhabricatorAuthPasswordHashInterface', ), 'PhabricatorUserBadgesCacheType' => 'PhabricatorUserCacheType', 'PhabricatorUserBlurbField' => 'PhabricatorUserCustomField', diff --git a/src/applications/auth/engine/PhabricatorAuthPasswordEngine.php b/src/applications/auth/engine/PhabricatorAuthPasswordEngine.php --- a/src/applications/auth/engine/PhabricatorAuthPasswordEngine.php +++ b/src/applications/auth/engine/PhabricatorAuthPasswordEngine.php @@ -27,7 +27,7 @@ return $this->contentSource; } - public function setObject(PhabricatorPasswordHashInterface $object) { + public function setObject(PhabricatorAuthPasswordHashInterface $object) { $this->object = $object; return $this; } diff --git a/src/applications/auth/password/PhabricatorPasswordHashInterface.php b/src/applications/auth/password/PhabricatorAuthPasswordHashInterface.php rename from src/applications/auth/password/PhabricatorPasswordHashInterface.php rename to src/applications/auth/password/PhabricatorAuthPasswordHashInterface.php --- a/src/applications/auth/password/PhabricatorPasswordHashInterface.php +++ b/src/applications/auth/password/PhabricatorAuthPasswordHashInterface.php @@ -1,6 +1,6 @@ setPasswordWithHasher($password, $object, $hasher); @@ -106,7 +106,7 @@ public function setPasswordWithHasher( PhutilOpaqueEnvelope $password, - PhabricatorPasswordHashInterface $object, + PhabricatorAuthPasswordHashInterface $object, PhabricatorPasswordHasher $hasher) { if (!strlen($password->openEnvelope())) { @@ -130,7 +130,7 @@ public function comparePassword( PhutilOpaqueEnvelope $password, - PhabricatorPasswordHashInterface $object) { + PhabricatorAuthPasswordHashInterface $object) { $digest = $this->digestPassword($password, $object); $hash = $this->newPasswordEnvelope(); @@ -144,7 +144,7 @@ private function digestPassword( PhutilOpaqueEnvelope $password, - PhabricatorPasswordHashInterface $object) { + PhabricatorAuthPasswordHashInterface $object) { $object_phid = $object->getPHID(); diff --git a/src/applications/people/storage/PhabricatorUser.php b/src/applications/people/storage/PhabricatorUser.php --- a/src/applications/people/storage/PhabricatorUser.php +++ b/src/applications/people/storage/PhabricatorUser.php @@ -21,7 +21,7 @@ PhabricatorFulltextInterface, PhabricatorFerretInterface, PhabricatorConduitResultInterface, - PhabricatorPasswordHashInterface { + PhabricatorAuthPasswordHashInterface { const SESSION_TABLE = 'phabricator_session'; const NAMETOKEN_TABLE = 'user_nametoken'; @@ -1565,7 +1565,7 @@ return $variables[$variable_key]; } -/* -( PhabricatorPasswordHashInterface )----------------------------------- */ +/* -( PhabricatorAuthPasswordHashInterface )------------------------------- */ public function newPasswordDigest(