Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Commit

Permalink
Replace deprecated usage of Html::autocompletionTextField()
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-anne committed Nov 18, 2021
1 parent 33eafc2 commit 486a13e
Showing 1 changed file with 38 additions and 12 deletions.
50 changes: 38 additions & 12 deletions inc/config.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,48 +55,74 @@ public function showForm() {
echo "<tr class='tab_bg_1' align='center'>";
echo "<td>" . __("Service URL", "fusioninventory") . "</td>";
echo "<td>";
Html::autocompletionTextField($this, "fusioninventory_url");
echo Html::input(
'fusioninventory_url',
[
'value' => $this->fields['fusioninventory_url'],
]
);
echo "</td>";
echo "</tr>";

echo "<tr class='tab_bg_1' align='center'>";
echo "<td>" . __("Airwatch Service URL", "airwatch") . "</td>";
echo "<td>";
Html::autocompletionTextField($this, "airwatch_service_url");
echo Html::input(
'airwatch_service_url',
[
'value' => $this->fields['airwatch_service_url'],
]
);
echo "</td>";
echo "</tr>";

echo "<tr class='tab_bg_1' align='center'>";
echo "<td>" . __("Airwatch Console URL", "airwatch") . "</td>";
echo "<td>";
Html::autocompletionTextField($this, "airwatch_console_url");
echo Html::input(
'airwatch_console_url',
[
'value' => $this->fields['airwatch_console_url'],
]
);
echo "</td>";
echo "</tr>";

echo "<tr class='tab_bg_1' align='center'>";
echo "<td>" . __("Username", "airwatch") . "</td>";
echo "<td>";
// FIXME This is a credential field so it is not in autocomplete whitelist
// Replace with a simple text input.
Html::autocompletionTextField($this, "username");
echo Html::input(
'username',
[
'value' => $this->fields['username'],
]
);
echo "</td>";
echo "</tr>";

echo "<tr class='tab_bg_1' align='center'>";
echo "<td>" . __("Password", "airwatch") . "</td>";
echo "<td>";
// FIXME This is a credential field so it is not in autocomplete whitelist
// Replace with a password text input, crypt it, and handle ability to "blank" it.
Html::autocompletionTextField($this, "password");
// FIXME This is a credential field. Encrypt it, and handle ability to "blank" it.
echo Html::input(
'password',
[
'type' => 'password',
'value' => $this->fields['password'],
]
);
echo "</td>";
echo "</tr>";

echo "<tr class='tab_bg_1' align='center'>";
echo "<td>" . __("API Key", "airwatch") . "</td>";
echo "<td>";
// FIXME This is a credential field so it is not in autocomplete whitelist
// Replace with a simple text input.
Html::autocompletionTextField($this, "api_key");
echo Html::input(
'api_key',
[
'value' => $this->fields['api_key'],
]
);
echo "</td>";
echo "</tr>";

Expand Down

0 comments on commit 486a13e

Please sign in to comment.