{% extends "panel.html" %} {% load i18n %} {% load sso %} {% load inventree_extras %} {% load socialaccount %} {% load crispy_forms_tags %} {% load user_sessions i18n %} {% block label %}account{% endblock label %} {% block heading %} {% trans "Account Settings" %} {% endblock heading %} {% block actions %} {% inventree_customize 'hide_password_reset' as hide_password_reset %} {% if not hide_password_reset %}
{% trans "Username" %} | {{ user.username }} |
{% trans "First Name" %} | {{ user.first_name }} |
{% trans "Last Name" %} | {{ user.last_name }} |
{% trans 'The following email addresses are associated with your account:' %}
{% else %}{% trans 'You have these factors available:' %}
Type | Name | {% for token in user.totpdevice_set.all %}
---|---|
{% trans 'TOTP' %} | {{ token.name }} |
{% trans 'Static' %} | {{ token.name }} |
{% trans "IP Address" %} | {% trans "Device" %} | {% trans "Last Activity" %} | |
---|---|---|---|
{{ object.ip }} | {% if object.user_agent or object.device %}{{ object.user_agent|device|default_if_none:unknown_on_unknown|safe }} | {% else %}{{ unknown_on_unknown }} | {% endif %}{% if object.session_key == session_key %} {% blocktrans with time=object.last_activity|timesince %}{{ time }} ago (this session){% endblocktrans %} {% else %} {% blocktrans with time=object.last_activity|timesince %}{{ time }} ago{% endblocktrans %} {% endif %} |