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();
|
$user_name = $user->getUserName();
|
||||||
if (!array_key_exists($user_name, $authfile)) {
|
if (!array_key_exists($user_name, $authfile)) {
|
||||||
$field_list = PhabricatorCustomField::getObjectFields(
|
$authfile[$user_name] = array('email' => $user->loadPrimaryEmailAddress(),
|
||||||
$user,
|
'name' => $user->getRealName());
|
||||||
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());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$repository_name = getSVNRepositoryName($repository);
|
$repository_name = getSVNRepositoryName($repository);
|
||||||
|
|||||||
Reference in New Issue
Block a user