mirror of
https://github.com/itflow-org/itflow
synced 2026-07-25 01:40:40 +00:00
Feature: Add new js function to retrieve and Audit log Password reveals, still need to get the edit modals
This commit is contained in:
@@ -530,7 +530,6 @@ ob_start();
|
||||
} else {
|
||||
$credential_username_display = "$credential_username <button type='button' class='btn btn-sm clipboardjs' data-clipboard-text='$credential_username'><i class='far fa-copy text-secondary'></i></button>";
|
||||
}
|
||||
$credential_password = escapeHtml(decryptCredentialEntry($row['credential_password']));
|
||||
$credential_otp_secret = escapeHtml($row['credential_otp_secret']);
|
||||
$credential_id_with_secret = '"' . $row['credential_id'] . '","' . $row['credential_otp_secret'] . '"';
|
||||
if (empty($credential_otp_secret)) {
|
||||
@@ -573,8 +572,7 @@ ob_start();
|
||||
</td>
|
||||
<td><?php echo $credential_username_display; ?></td>
|
||||
<td>
|
||||
<button class="btn p-0" type="button" data-toggle="popover" data-trigger="focus" data-placement="top" data-content="<?php echo $credential_password; ?>"><i class="fas fa-2x fa-ellipsis-h text-secondary"></i><i class="fas fa-2x fa-ellipsis-h text-secondary"></i></button>
|
||||
<button type='button' class='btn btn-sm clipboardjs' data-clipboard-text='<?php echo $credential_password; ?>'><i class='far fa-copy text-secondary'></i></button>
|
||||
<button class="btn p-0" type="button" onclick="showPasswordViaCredentialID(this, <?php echo $credential_id; ?>)"><i class="fas fa-2x fa-ellipsis-h text-secondary"></i><i class="fas fa-2x fa-ellipsis-h text-secondary"></i></button><button class="btn btn-sm" type="button" onclick="copyPasswordViaCredentialID(this, <?php echo $credential_id; ?>)"><i class="far fa-copy text-secondary"></i></button>
|
||||
</td>
|
||||
<td><?php echo $otp_display; ?></td>
|
||||
<td><?php echo $credential_uri_display; ?></td>
|
||||
@@ -590,8 +588,9 @@ ob_start();
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Include script to get TOTP code via the credentials ID -->
|
||||
<!-- Include scripts to fetch TOTP codes and passwords via the credential ID -->
|
||||
<script src="../js/credential_show_otp_via_id.js"></script>
|
||||
<script src="../js/credential_show_password_via_id.js"></script>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($ticket_count) { ?>
|
||||
|
||||
@@ -556,8 +556,6 @@ ob_start();
|
||||
$credential_username_display = "$credential_username <button type='button' class='btn btn-sm clipboardjs' data-clipboard-text='$credential_username'><i class='far fa-copy text-secondary'></i></button>";
|
||||
}
|
||||
|
||||
$credential_password = escapeHtml(decryptCredentialEntry($row['credential_password']));
|
||||
|
||||
$credential_otp_secret = escapeHtml($row['credential_otp_secret']);
|
||||
if (empty($credential_otp_secret)) {
|
||||
$otp_display = "-";
|
||||
@@ -570,10 +568,10 @@ ob_start();
|
||||
<td><?= $credential_description ?></td>
|
||||
<td><?= $credential_username_display ?></td>
|
||||
<td>
|
||||
<button class="btn p-0" type="button" data-toggle="popover" data-trigger="focus" data-placement="top" data-content="<?= $credential_password ?>">
|
||||
<i class="fas fa-ellipsis-h text-secondary"></i><i class="fas fa-ellipsis-h text-secondary"></i>
|
||||
<button class="btn p-0" type="button" onclick="showPasswordViaCredentialID(this, <?php echo $credential_id; ?>)">
|
||||
<i class="fas fa-2x fa-ellipsis-h text-secondary"></i><i class="fas fa-2x fa-ellipsis-h text-secondary"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-sm clipboardjs" data-clipboard-text="<?= $credential_password ?>">
|
||||
<button class="btn btn-sm" type="button" onclick="copyPasswordViaCredentialID(this, <?php echo $credential_id; ?>)">
|
||||
<i class="far fa-copy text-secondary"></i>
|
||||
</button>
|
||||
</td>
|
||||
@@ -586,7 +584,9 @@ ob_start();
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- Include scripts to fetch TOTP codes and passwords via the credential ID -->
|
||||
<script src="js/credential_show_otp_via_id.js"></script>
|
||||
<script src="js/credential_show_password_via_id.js"></script>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user