mirror of
https://github.com/itflow-org/itflow
synced 2026-08-18 05:25:12 +00:00
Fix guest view credential totp
This commit is contained in:
@@ -234,9 +234,7 @@ if ($item_type == "Document") {
|
|||||||
id: <?php echo $item_id; ?>,
|
id: <?php echo $item_id; ?>,
|
||||||
key: "<?php echo $item_key; ?>"
|
key: "<?php echo $item_key; ?>"
|
||||||
},
|
},
|
||||||
function(data) {
|
function(response) {
|
||||||
const response = JSON.parse(data);
|
|
||||||
|
|
||||||
if (response.token) {
|
if (response.token) {
|
||||||
document.getElementById("otp").innerText = response.token;
|
document.getElementById("otp").innerText = response.token;
|
||||||
// Refresh exactly when this code rotates
|
// Refresh exactly when this code rotates
|
||||||
|
|||||||
Reference in New Issue
Block a user