Remove access to htpassword custom field
It is retired and is no longer in use, replaced with the auth_provider.
This commit is contained in:
		@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user