{!-- /** * JCOGS OTP Pro - User Preference: Trusted Devices Management * ============================================================ * * Displays and manages trusted devices that can skip OTP verification. * Shows device information, last used timestamps, and provides revocation * controls for individual devices or all devices at once. * * Features: * - List of all trusted devices with details * - Device information (browser, OS, IP, location estimate) * - Last used and expires timestamps * - Individual device revocation * - Bulk "revoke all" functionality * - Current device indicator * * Template Group: jcogs_otp_pro_examples * Return URL: /jcogs_otp_pro_examples/user_trusted_devices (shows success) * Settings Page: /jcogs_otp_pro_examples/user_otp_settings * CSS/JS Path: __CSS_JS_PATH__ (replaced during installation) * * @category ExpressionEngine Template * @package JCOGS OTP Pro * @author JCOGS Design * @copyright 2026 JCOGS Design * @license https://jcogs.net/add-ons/license/jcogs_otp_pro * @version 2.0.4 * @link https://JCOGS.net/ */ --} Trusted Devices - JCOGS OTP Pro

Trusted Devices

Manage devices that can skip OTP verification for a limited time

{exp:jcogs_otp_pro:trusted_devices} {!-- Success Message --} {if success}
{success}
{/if} {!-- Error Messages --} {if errors}
{errors}

{error}

{/errors}
{/if} {!-- Device Count Summary --} {if has_devices == 'y'}
{total_count} trusted {if total_count == '1'}device{if:else}devices{/if}
{!-- Device List --} {devices}

{device_name}

Last used: {last_used_formatted} Expires: {expires_at_formatted}
IP: {ip_address}
{if can_revoke == 'y'} {revoke_form_open} {device_id_input} {revoke_form_close} {if:else} {/if}
{/devices} {!-- Revoke All Section --} {if total_count > 1}

Revoke All Devices

⚠️ Warning: This will revoke trust for all devices except your current device. You'll need to verify with OTP on those devices next time.
{revoke_all_form_open} {revoke_all_input} {revoke_all_form_close}
{/if} {if:else} {!-- No Devices --}
🔐

No Trusted Devices

You haven't marked any devices as trusted yet.
Next time you log in, check "Trust this device" to add it to this list.

{/if} {/exp:jcogs_otp_pro:trusted_devices} {!-- Navigation Links --}