mirror of
https://github.com/itflow-org/itflow
synced 2026-03-05 21:34:51 +00:00
Fix Show OTP on hover in asset and contact details logins section
This commit is contained in:
@@ -485,7 +485,7 @@ if (isset($_GET['asset_id'])) {
|
|||||||
if (empty($login_otp_secret)) {
|
if (empty($login_otp_secret)) {
|
||||||
$otp_display = "-";
|
$otp_display = "-";
|
||||||
} else {
|
} else {
|
||||||
$otp_display = "<span onmouseenter='showOTP($login_id_with_secret)'><i class='far fa-clock'></i> <span id='otp_$login_id'><i>Hover..</i></span></span>";
|
$otp_display = "<span onmouseenter='showOTPViaLoginID($login_id)'><i class='far fa-clock'></i> <span id='otp_$login_id'><i>Hover..</i></span></span>";
|
||||||
}
|
}
|
||||||
$login_note = nullable_htmlentities($row['login_note']);
|
$login_note = nullable_htmlentities($row['login_note']);
|
||||||
$login_important = intval($row['login_important']);
|
$login_important = intval($row['login_important']);
|
||||||
@@ -926,6 +926,8 @@ if (isset($_GET['asset_id'])) {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script src="js/recurring_tickets_edit_modal.js"></script>
|
<script src="js/recurring_tickets_edit_modal.js"></script>
|
||||||
|
<!-- Include script to get TOTP code via the login ID -->
|
||||||
|
<script src="js/logins_show_otp_via_id.js"></script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|||||||
@@ -477,7 +477,7 @@ if (isset($_GET['contact_id'])) {
|
|||||||
if (empty($login_otp_secret)) {
|
if (empty($login_otp_secret)) {
|
||||||
$otp_display = "-";
|
$otp_display = "-";
|
||||||
} else {
|
} else {
|
||||||
$otp_display = "<span onmouseenter='showOTP($login_id_with_secret)'><i class='far fa-clock'></i> <span id='otp_$login_id'><i>Hover..</i></span></span>";
|
$otp_display = "<span onmouseenter='showOTPViaLoginID($login_id)'><i class='far fa-clock'></i> <span id='otp_$login_id'><i>Hover..</i></span></span>";
|
||||||
}
|
}
|
||||||
$login_note = nullable_htmlentities($row['login_note']);
|
$login_note = nullable_htmlentities($row['login_note']);
|
||||||
$login_important = intval($row['login_important']);
|
$login_important = intval($row['login_important']);
|
||||||
@@ -1129,6 +1129,8 @@ if (isset($_GET['contact_id'])) {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script src="js/recurring_tickets_edit_modal.js"></script>
|
<script src="js/recurring_tickets_edit_modal.js"></script>
|
||||||
|
<!-- Include script to get TOTP code via the login ID -->
|
||||||
|
<script src="js/logins_show_otp_via_id.js"></script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user