@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 the `PhabricatorAuthFactorTOTP` class for consistency

Summary: Ref T5655.

Test Plan: `grep`

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Maniphest Tasks: T5655

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

+7 -7
+4 -4
src/__phutil_library_map__.php
··· 1327 1327 'PhabricatorAuthEditController' => 'applications/auth/controller/config/PhabricatorAuthEditController.php', 1328 1328 'PhabricatorAuthFactor' => 'applications/auth/factor/PhabricatorAuthFactor.php', 1329 1329 'PhabricatorAuthFactorConfig' => 'applications/auth/storage/PhabricatorAuthFactorConfig.php', 1330 - 'PhabricatorAuthFactorTOTP' => 'applications/auth/factor/PhabricatorAuthFactorTOTP.php', 1331 - 'PhabricatorAuthFactorTOTPTestCase' => 'applications/auth/factor/__tests__/PhabricatorAuthFactorTOTPTestCase.php', 1332 1330 'PhabricatorAuthFinishController' => 'applications/auth/controller/PhabricatorAuthFinishController.php', 1333 1331 'PhabricatorAuthHighSecurityRequiredException' => 'applications/auth/exception/PhabricatorAuthHighSecurityRequiredException.php', 1334 1332 'PhabricatorAuthHighSecurityToken' => 'applications/auth/data/PhabricatorAuthHighSecurityToken.php', ··· 2472 2470 'PhabricatorSystemRemoveWorkflow' => 'applications/system/management/PhabricatorSystemRemoveWorkflow.php', 2473 2471 'PhabricatorSystemSelectEncodingController' => 'applications/system/controller/PhabricatorSystemSelectEncodingController.php', 2474 2472 'PhabricatorSystemSelectHighlightController' => 'applications/system/controller/PhabricatorSystemSelectHighlightController.php', 2473 + 'PhabricatorTOTPAuthFactor' => 'applications/auth/factor/PhabricatorTOTPAuthFactor.php', 2474 + 'PhabricatorTOTPAuthFactorTestCase' => 'applications/auth/factor/__tests__/PhabricatorTOTPAuthFactorTestCase.php', 2475 2475 'PhabricatorTaskmasterDaemon' => 'infrastructure/daemon/workers/PhabricatorTaskmasterDaemon.php', 2476 2476 'PhabricatorTestApplication' => 'applications/base/controller/__tests__/PhabricatorTestApplication.php', 2477 2477 'PhabricatorTestCase' => 'infrastructure/testing/PhabricatorTestCase.php', ··· 4479 4479 'PhabricatorAuthEditController' => 'PhabricatorAuthProviderConfigController', 4480 4480 'PhabricatorAuthFactor' => 'Phobject', 4481 4481 'PhabricatorAuthFactorConfig' => 'PhabricatorAuthDAO', 4482 - 'PhabricatorAuthFactorTOTP' => 'PhabricatorAuthFactor', 4483 - 'PhabricatorAuthFactorTOTPTestCase' => 'PhabricatorTestCase', 4484 4482 'PhabricatorAuthFinishController' => 'PhabricatorAuthController', 4485 4483 'PhabricatorAuthHighSecurityRequiredException' => 'Exception', 4486 4484 'PhabricatorAuthLinkController' => 'PhabricatorAuthController', ··· 5710 5708 'PhabricatorSystemRemoveWorkflow' => 'PhabricatorManagementWorkflow', 5711 5709 'PhabricatorSystemSelectEncodingController' => 'PhabricatorController', 5712 5710 'PhabricatorSystemSelectHighlightController' => 'PhabricatorController', 5711 + 'PhabricatorTOTPAuthFactor' => 'PhabricatorAuthFactor', 5712 + 'PhabricatorTOTPAuthFactorTestCase' => 'PhabricatorTestCase', 5713 5713 'PhabricatorTaskmasterDaemon' => 'PhabricatorDaemon', 5714 5714 'PhabricatorTestApplication' => 'PhabricatorApplication', 5715 5715 'PhabricatorTestCase' => 'ArcanistPhutilTestCase',
+1 -1
src/applications/auth/factor/PhabricatorAuthFactorTOTP.php src/applications/auth/factor/PhabricatorTOTPAuthFactor.php
··· 1 1 <?php 2 2 3 - final class PhabricatorAuthFactorTOTP extends PhabricatorAuthFactor { 3 + final class PhabricatorTOTPAuthFactor extends PhabricatorAuthFactor { 4 4 5 5 const TEMPORARY_TOKEN_TYPE = 'mfa:totp:key'; 6 6
+2 -2
src/applications/auth/factor/__tests__/PhabricatorAuthFactorTOTPTestCase.php src/applications/auth/factor/__tests__/PhabricatorTOTPAuthFactorTestCase.php
··· 1 1 <?php 2 2 3 - final class PhabricatorAuthFactorTOTPTestCase extends PhabricatorTestCase { 3 + final class PhabricatorTOTPAuthFactorTestCase extends PhabricatorTestCase { 4 4 5 5 public function testTOTPCodeGeneration() { 6 6 $tests = array( ··· 32 32 list($key, $time, $code) = $test; 33 33 $this->assertEqual( 34 34 $code, 35 - PhabricatorAuthFactorTOTP::getTOTPCode( 35 + PhabricatorTOTPAuthFactor::getTOTPCode( 36 36 new PhutilOpaqueEnvelope($key), 37 37 $time)); 38 38 }