From f2e87aad89e9d464038cc5095acb5e5dbdb32e4d Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Tue, 6 Jan 2015 22:56:03 +1100 Subject: [PATCH] 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 --- src/__phutil_library_map__.php | 8 ++++---- ...orAuthFactorTOTP.php => PhabricatorTOTPAuthFactor.php} | 2 +- ...TestCase.php => PhabricatorTOTPAuthFactorTestCase.php} | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) rename src/applications/auth/factor/{PhabricatorAuthFactorTOTP.php => PhabricatorTOTPAuthFactor.php} (99%) rename src/applications/auth/factor/__tests__/{PhabricatorAuthFactorTOTPTestCase.php => PhabricatorTOTPAuthFactorTestCase.php} (86%) diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index e50ece14c0..cae42983cb 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -1327,8 +1327,6 @@ phutil_register_library_map(array( 'PhabricatorAuthEditController' => 'applications/auth/controller/config/PhabricatorAuthEditController.php', 'PhabricatorAuthFactor' => 'applications/auth/factor/PhabricatorAuthFactor.php', 'PhabricatorAuthFactorConfig' => 'applications/auth/storage/PhabricatorAuthFactorConfig.php', - 'PhabricatorAuthFactorTOTP' => 'applications/auth/factor/PhabricatorAuthFactorTOTP.php', - 'PhabricatorAuthFactorTOTPTestCase' => 'applications/auth/factor/__tests__/PhabricatorAuthFactorTOTPTestCase.php', 'PhabricatorAuthFinishController' => 'applications/auth/controller/PhabricatorAuthFinishController.php', 'PhabricatorAuthHighSecurityRequiredException' => 'applications/auth/exception/PhabricatorAuthHighSecurityRequiredException.php', 'PhabricatorAuthHighSecurityToken' => 'applications/auth/data/PhabricatorAuthHighSecurityToken.php', @@ -2472,6 +2470,8 @@ phutil_register_library_map(array( 'PhabricatorSystemRemoveWorkflow' => 'applications/system/management/PhabricatorSystemRemoveWorkflow.php', 'PhabricatorSystemSelectEncodingController' => 'applications/system/controller/PhabricatorSystemSelectEncodingController.php', 'PhabricatorSystemSelectHighlightController' => 'applications/system/controller/PhabricatorSystemSelectHighlightController.php', + 'PhabricatorTOTPAuthFactor' => 'applications/auth/factor/PhabricatorTOTPAuthFactor.php', + 'PhabricatorTOTPAuthFactorTestCase' => 'applications/auth/factor/__tests__/PhabricatorTOTPAuthFactorTestCase.php', 'PhabricatorTaskmasterDaemon' => 'infrastructure/daemon/workers/PhabricatorTaskmasterDaemon.php', 'PhabricatorTestApplication' => 'applications/base/controller/__tests__/PhabricatorTestApplication.php', 'PhabricatorTestCase' => 'infrastructure/testing/PhabricatorTestCase.php', @@ -4479,8 +4479,6 @@ phutil_register_library_map(array( 'PhabricatorAuthEditController' => 'PhabricatorAuthProviderConfigController', 'PhabricatorAuthFactor' => 'Phobject', 'PhabricatorAuthFactorConfig' => 'PhabricatorAuthDAO', - 'PhabricatorAuthFactorTOTP' => 'PhabricatorAuthFactor', - 'PhabricatorAuthFactorTOTPTestCase' => 'PhabricatorTestCase', 'PhabricatorAuthFinishController' => 'PhabricatorAuthController', 'PhabricatorAuthHighSecurityRequiredException' => 'Exception', 'PhabricatorAuthLinkController' => 'PhabricatorAuthController', @@ -5710,6 +5708,8 @@ phutil_register_library_map(array( 'PhabricatorSystemRemoveWorkflow' => 'PhabricatorManagementWorkflow', 'PhabricatorSystemSelectEncodingController' => 'PhabricatorController', 'PhabricatorSystemSelectHighlightController' => 'PhabricatorController', + 'PhabricatorTOTPAuthFactor' => 'PhabricatorAuthFactor', + 'PhabricatorTOTPAuthFactorTestCase' => 'PhabricatorTestCase', 'PhabricatorTaskmasterDaemon' => 'PhabricatorDaemon', 'PhabricatorTestApplication' => 'PhabricatorApplication', 'PhabricatorTestCase' => 'ArcanistPhutilTestCase', diff --git a/src/applications/auth/factor/PhabricatorAuthFactorTOTP.php b/src/applications/auth/factor/PhabricatorTOTPAuthFactor.php similarity index 99% rename from src/applications/auth/factor/PhabricatorAuthFactorTOTP.php rename to src/applications/auth/factor/PhabricatorTOTPAuthFactor.php index 1f15c81a33..519df58ffb 100644 --- a/src/applications/auth/factor/PhabricatorAuthFactorTOTP.php +++ b/src/applications/auth/factor/PhabricatorTOTPAuthFactor.php @@ -1,6 +1,6 @@ assertEqual( $code, - PhabricatorAuthFactorTOTP::getTOTPCode( + PhabricatorTOTPAuthFactor::getTOTPCode( new PhutilOpaqueEnvelope($key), $time)); }