2025-06-03 21:03:32 +03:00

29 lines
1.0 KiB
HTML

{% if auth_events %}
<table>
<thead>
<tr>
<th>Timestamp</th>
<th>User</th>
<th>Event Type</th>
<th>Username</th> {# Added username field #}
<th>IP Address</th>
</tr>
</thead>
<tbody>
{% for event in auth_events %}
<tr>
<td>{{ event.datetime }}</td> {# Corrected field name #}
<td>{{ event.user.username|default:"N/A" }}</td>
<td>{{ event.get_login_type_display }}</td> {# Corrected: get_login_type_display #}
<td>{{ event.username }}</td> {# Added username field #}
<td>{{ event.remote_ip }}</td> {# Corrected field name #}
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>No authentication audit events found.</p>
{% endif %}