@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.

Rename "PhabricatorPasswordHashInterface" to "PhabricatorAuthPasswordHashInterface"

Summary: Depends on D18911. Ref T13043. Improves consistency with other "PhabricatorAuthPassword..." classes.

Test Plan: Unit tests, `grep`.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13043

Differential Revision: https://secure.phabricator.com/D18916

+12 -12
+2 -2
src/__phutil_library_map__.php
··· 2094 2094 'PhabricatorAuthPasswordEditor' => 'applications/auth/editor/PhabricatorAuthPasswordEditor.php', 2095 2095 'PhabricatorAuthPasswordEngine' => 'applications/auth/engine/PhabricatorAuthPasswordEngine.php', 2096 2096 'PhabricatorAuthPasswordException' => 'applications/auth/password/PhabricatorAuthPasswordException.php', 2097 + 'PhabricatorAuthPasswordHashInterface' => 'applications/auth/password/PhabricatorAuthPasswordHashInterface.php', 2097 2098 'PhabricatorAuthPasswordPHIDType' => 'applications/auth/phid/PhabricatorAuthPasswordPHIDType.php', 2098 2099 'PhabricatorAuthPasswordQuery' => 'applications/auth/query/PhabricatorAuthPasswordQuery.php', 2099 2100 'PhabricatorAuthPasswordResetTemporaryTokenType' => 'applications/auth/tokentype/PhabricatorAuthPasswordResetTemporaryTokenType.php', ··· 3496 3497 'PhabricatorPassphraseApplication' => 'applications/passphrase/application/PhabricatorPassphraseApplication.php', 3497 3498 'PhabricatorPasswordAuthProvider' => 'applications/auth/provider/PhabricatorPasswordAuthProvider.php', 3498 3499 'PhabricatorPasswordDestructionEngineExtension' => 'applications/auth/extension/PhabricatorPasswordDestructionEngineExtension.php', 3499 - 'PhabricatorPasswordHashInterface' => 'applications/auth/password/PhabricatorPasswordHashInterface.php', 3500 3500 'PhabricatorPasswordHasher' => 'infrastructure/util/password/PhabricatorPasswordHasher.php', 3501 3501 'PhabricatorPasswordHasherTestCase' => 'infrastructure/util/password/__tests__/PhabricatorPasswordHasherTestCase.php', 3502 3502 'PhabricatorPasswordHasherUnavailableException' => 'infrastructure/util/password/PhabricatorPasswordHasherUnavailableException.php', ··· 9997 9997 'PhabricatorFulltextInterface', 9998 9998 'PhabricatorFerretInterface', 9999 9999 'PhabricatorConduitResultInterface', 10000 - 'PhabricatorPasswordHashInterface', 10000 + 'PhabricatorAuthPasswordHashInterface', 10001 10001 ), 10002 10002 'PhabricatorUserBadgesCacheType' => 'PhabricatorUserCacheType', 10003 10003 'PhabricatorUserBlurbField' => 'PhabricatorUserCustomField',
+1 -1
src/applications/auth/engine/PhabricatorAuthPasswordEngine.php
··· 27 27 return $this->contentSource; 28 28 } 29 29 30 - public function setObject(PhabricatorPasswordHashInterface $object) { 30 + public function setObject(PhabricatorAuthPasswordHashInterface $object) { 31 31 $this->object = $object; 32 32 return $this; 33 33 }
+1 -1
src/applications/auth/password/PhabricatorPasswordHashInterface.php src/applications/auth/password/PhabricatorAuthPasswordHashInterface.php
··· 1 1 <?php 2 2 3 - interface PhabricatorPasswordHashInterface { 3 + interface PhabricatorAuthPasswordHashInterface { 4 4 5 5 public function newPasswordDigest( 6 6 PhutilOpaqueEnvelope $envelope,
+6 -6
src/applications/auth/storage/PhabricatorAuthPassword.php
··· 21 21 const PASSWORD_TYPE_TEST = 'test'; 22 22 23 23 public static function initializeNewPassword( 24 - PhabricatorPasswordHashInterface $object, 24 + PhabricatorAuthPasswordHashInterface $object, 25 25 $type) { 26 26 27 27 return id(new self()) ··· 80 80 81 81 public function upgradePasswordHasher( 82 82 PhutilOpaqueEnvelope $envelope, 83 - PhabricatorPasswordHashInterface $object) { 83 + PhabricatorAuthPasswordHashInterface $object) { 84 84 85 85 // Before we make changes, double check that this is really the correct 86 86 // password. It could be really bad if we "upgraded" a password and changed ··· 98 98 99 99 public function setPassword( 100 100 PhutilOpaqueEnvelope $password, 101 - PhabricatorPasswordHashInterface $object) { 101 + PhabricatorAuthPasswordHashInterface $object) { 102 102 103 103 $hasher = PhabricatorPasswordHasher::getBestHasher(); 104 104 return $this->setPasswordWithHasher($password, $object, $hasher); ··· 106 106 107 107 public function setPasswordWithHasher( 108 108 PhutilOpaqueEnvelope $password, 109 - PhabricatorPasswordHashInterface $object, 109 + PhabricatorAuthPasswordHashInterface $object, 110 110 PhabricatorPasswordHasher $hasher) { 111 111 112 112 if (!strlen($password->openEnvelope())) { ··· 130 130 131 131 public function comparePassword( 132 132 PhutilOpaqueEnvelope $password, 133 - PhabricatorPasswordHashInterface $object) { 133 + PhabricatorAuthPasswordHashInterface $object) { 134 134 135 135 $digest = $this->digestPassword($password, $object); 136 136 $hash = $this->newPasswordEnvelope(); ··· 144 144 145 145 private function digestPassword( 146 146 PhutilOpaqueEnvelope $password, 147 - PhabricatorPasswordHashInterface $object) { 147 + PhabricatorAuthPasswordHashInterface $object) { 148 148 149 149 $object_phid = $object->getPHID(); 150 150
+2 -2
src/applications/people/storage/PhabricatorUser.php
··· 21 21 PhabricatorFulltextInterface, 22 22 PhabricatorFerretInterface, 23 23 PhabricatorConduitResultInterface, 24 - PhabricatorPasswordHashInterface { 24 + PhabricatorAuthPasswordHashInterface { 25 25 26 26 const SESSION_TABLE = 'phabricator_session'; 27 27 const NAMETOKEN_TABLE = 'user_nametoken'; ··· 1565 1565 return $variables[$variable_key]; 1566 1566 } 1567 1567 1568 - /* -( PhabricatorPasswordHashInterface )----------------------------------- */ 1568 + /* -( PhabricatorAuthPasswordHashInterface )------------------------------- */ 1569 1569 1570 1570 1571 1571 public function newPasswordDigest(