From b0724f5b66ce839fd15f0c5b81244d19ba0f1ee2 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sat, 15 Nov 2025 19:17:03 -0500 Subject: [PATCH] Add TOTP Secret to Export / Offboard Client Documentation PDF --- agent/post/client.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/agent/post/client.php b/agent/post/client.php index 9bf10c10..e9de29c3 100644 --- a/agent/post/client.php +++ b/agent/post/client.php @@ -1390,22 +1390,25 @@ if (isset($_POST["export_client_pdf"])) { Description Username Password + TOTP URI "; while ($row = mysqli_fetch_array($sql_credentials)) { $credential_name = nullable_htmlentities($row["credential_name"]); - $credential_description = nullable_htmlentities($row["credential_description"]); + $credential_description = getFallback(nullable_htmlentities($row["credential_description"])); $credential_username = nullable_htmlentities(decryptCredentialEntry($row["credential_username"])); $credential_password = nullable_htmlentities(decryptCredentialEntry($row["credential_password"])); - $credential_uri = nullable_htmlentities($row["credential_uri"]); + $credential_totp_secret = getFallback(nullable_htmlentities($row['credential_otp_secret'])); + $credential_uri = getFallback(nullable_htmlentities($row["credential_uri"])); $html .= " $credential_name $credential_description $credential_username $credential_password + $credential_totp_secret $credential_uri "; }