Fix guest view credential totp

This commit is contained in:
johnnyq
2026-07-16 00:26:25 -04:00
parent e39ecb7ac9
commit 906f58473d

View File

@@ -234,9 +234,7 @@ if ($item_type == "Document") {
id: <?php echo $item_id; ?>,
key: "<?php echo $item_key; ?>"
},
function(data) {
const response = JSON.parse(data);
function(response) {
if (response.token) {
document.getElementById("otp").innerText = response.token;
// Refresh exactly when this code rotates