Skip to content

Commit

Permalink
Show CLI sessions property
Browse files Browse the repository at this point in the history
Signed-off-by: DL6ER <[email protected]>
  • Loading branch information
DL6ER committed Jun 20, 2024
1 parent 103bfed commit 76a7248
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/pi-hole/js/settings-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ $(function () {
{ data: "valid", render: renderBool },
{ data: null },
{ data: "app", render: renderBool },
{ data: "cli", render: renderBool },
{ data: "login_at", render: utils.renderTimestamp },
{ data: "valid_until", render: utils.renderTimestamp },
{ data: "remote_addr", type: "ip-address" },
Expand Down Expand Up @@ -85,7 +86,7 @@ $(function () {
'">' +
'<span class="far fa-trash-alt"></span>' +
"</button>";
$("td:eq(9)", row).html(button);
$("td:eq(10)", row).html(button);
if (data.current_session) {
ownSessionID = data.id;
$(row).addClass("text-bold allowed-row");
Expand Down
1 change: 1 addition & 0 deletions settings-api.lp
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ mg.include('scripts/pi-hole/lua/settings_header.lp','r')
<th title="Session is still valid (neither expired nor closed)">Valid</th>
<th title="Connection between client and Pi-hole is end-to-end encrypted">TLS</th>
<th title="Session used application password during authentication"><i class="fas fa-robot"></i></th>
<th title="Session used CLI password during authentication"><i class="fas fa-terminal"></i></th>
<th title="Time at which the client created the session">Login at</th>
<th title="Time at which the session expires (if not prolonged)">Valid until</th>
<th title="The client that created this session (the current connection is highlighted in bold-face)">Client IP</th>
Expand Down

0 comments on commit 76a7248

Please sign in to comment.