ImportSourceRestApi: use storedPassword field

fixes #1897
This commit is contained in:
Thomas Gelf 2020-11-28 17:55:32 +01:00
parent 67e72387ee
commit b725a07197
2 changed files with 4 additions and 3 deletions

View File

@ -48,6 +48,7 @@ next (will be 1.8.0)
* FEATURE: Import Sources now allows downloading previewed data as JSON (#2096)
* FEATURE: REST API Import now allows custom headers (#2132)
* FEATURE: REST API Import can now extract nested properties (#2132)
* FEATURE: REST API Form remembers passwords without exposing them (#2070)
* FEATURE: UTF8 validation for failed imports gives better error message (#2143)
* FEATURE: ArrayByElementPosition now allows filtering by key name (#1721)
* FEATURE: Use your Director Objects as an Import Source (#2198)

View File

@ -229,9 +229,9 @@ class ImportSourceRestApi extends ImportSourceHook
),
]);
$form->addElement('password', 'password', array(
$form->addElement('storedPassword', 'password', [
'label' => $form->translate('Password'),
));
]);
}
/**
@ -274,7 +274,7 @@ class ImportSourceRestApi extends ImportSourceHook
$passRequired = strlen($form->getSentOrObjectSetting('proxy_user')) > 0;
$form->addElement('password', 'proxy_pass', [
$form->addElement('storedPassword', 'proxy_pass', [
'label' => $form->translate('Proxy Password'),
'required' => $passRequired
]);