Skip to content

Commit

Permalink
Show CLI sessions property (#3056)
Browse files Browse the repository at this point in the history
  • Loading branch information
DL6ER authored Jun 30, 2024
2 parents 78f2919 + 76a7248 commit 330845b
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 @@ -42,6 +42,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 @@ -86,7 +87,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 330845b

Please sign in to comment.