{% extends "dashboard/user/user-base.html.twig" %} {% block tab %}

{{ esc_html__('The following list contains all of your trusted devices. When you are using a trusted device you don’t need to enter a verification code each time you log in. Ensure that this list is up to date and remove unnecessary devices.', '2fas') }}

{% if trusted_devices is empty %}
{{ esc_html__('No trusted devices', '2fas') }}
{% else %} {% for id, device in trusted_devices %} {% endfor %}
{{ esc_html__('Browser and device', '2fas') }} {{ esc_html__('Added', '2fas') }} {{ esc_html__('Last logged in', '2fas') }} {{ esc_html__('IP Address', '2fas') }} {{ esc_html__('Action', '2fas') }}
{{ device['browser'] }}
{{ device['added_on'] }} {{ device['added_on'] }}
{{ device['last_logged_in'] is empty ? esc_html__('No information', '2fas') : device['last_logged_in'] }} {{ device['last_logged_in'] is empty ? esc_html__('No information', '2fas') : device['last_logged_in']}}
{{ device['ip'] }} {{ device['ip'] }}
{% set params = {'id': id} %}
{{ create_form_nonce(constant('TwoFAS\\TwoFAS\\Http\\Action_Index::ACTION_REMOVE_TRUSTED_DEVICE')) | raw }}
{% endif %} {% if not is_current_device_trusted %}
{{ create_form_nonce(constant('TwoFAS\\TwoFAS\\Http\\Action_Index::ACTION_ADD_TRUSTED_DEVICE')) | raw }}
{% endif %}
{% include 'modals/confirmation/deletion-confirmation-modal.html.twig' %} {% endblock %}