1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
{% extends "root.html" %}
{% block main %}
<h1 class="display-2 mb-4">Status</h1>
<table class="table">
<tbody>
<tr>
<th scope="row">Username</th>
<td>
{% if user.is_authenticated %}
<span id="username">{{ user.get_username }}</span>
{% else %}
<i>anonymous</i>
{% endif %}
</td>
</tr>
<tr>
<th scope="row">Verified by</th>
<td>
{% if user.otp_device %}
{{ user.otp_device }}<br>
<span id="otp_device">{{ user.otp_device.persistent_id }}</span>
{% else %}
<i>none</i>
{% endif %}
</td>
</tr>
</tbody>
</table>
{% endblock %}
|