From bd07cea6a680d1f095d335c7341541cc615e7d53 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 17 Sep 2020 11:34:54 +0200 Subject: [PATCH] Remove access to htpassword custom field It is retired and is no longer in use, replaced with the auth_provider. --- scripts/svnauth/rebuild_svnauth.php | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/scripts/svnauth/rebuild_svnauth.php b/scripts/svnauth/rebuild_svnauth.php index 7a70d0310f..f6f722e42e 100755 --- a/scripts/svnauth/rebuild_svnauth.php +++ b/scripts/svnauth/rebuild_svnauth.php @@ -27,20 +27,8 @@ function handleSingleUserPHID( $user_name = $user->getUserName(); if (!array_key_exists($user_name, $authfile)) { - $field_list = PhabricatorCustomField::getObjectFields( - $user, - PhabricatorCustomField::ROLE_STORAGE); - $field_list - ->setViewer($user) - ->readFieldsFromStorage($user); - $fields = $field_list->getFields(); - $htaccess_field = idx($fields, 'std:user:htaccess_password_hash'); - if ($htaccess_field) { - $password_hash = $htaccess_field->getValueForStorage(); - $authfile[$user_name] = array('hash' => $password_hash, - 'email' => $user->loadPrimaryEmailAddress(), - 'name' => $user->getRealName()); - } + $authfile[$user_name] = array('email' => $user->loadPrimaryEmailAddress(), + 'name' => $user->getRealName()); } $repository_name = getSVNRepositoryName($repository);