{% extends 'settings/master.twig' %} {% from 'macros.twig' import pagination %} {% set alpagination = pagination( audit_log_count, audit_log_take, audit_log_offset, '?m=logs'|url_construct({'lo': login_attempts_offset}), 'settings__', false, 'ao' ) %} {% set lhpagination = pagination( login_attempts_count, login_attempts_take, login_attempts_offset, '?m=logs'|url_construct({'ao': audit_log_offset}), 'settings__', false, 'lo' ) %} {% block settings_content %}
Login History

These are all the login attempts to your account. If any attempt that you don't recognise is marked as successful your account may be compromised, ask a staff member for advice in this case.

{{ lhpagination }} {% for attempt in user_login_attempts %} {% endfor %} {{ lhpagination }}
Account Log

This is a log of all "important" actions that have been done using your account for your review. If you notice anything strange, please alert the staff.

{{ alpagination }} {% for log in audit_logs %}
Date
Action
{% if log.log_action in log_strings|keys %} {{ log_strings[log.log_action]|vsprintf(log.log_params|json_decode) }} {% else %} {{ log.log_action }}({{ log.log_params }}) {% endif %}
{% endfor %} {{ alpagination }}
{% endblock %}