Save the date when a webauthn key was used last time for 2 factor authentication and show it in user settings

This commit is contained in:
Jan Böhmer 2024-04-28 17:50:19 +02:00
parent b886c0aeae
commit db72dac243
5 changed files with 125 additions and 12 deletions

View file

@ -230,4 +230,12 @@
{% endfor %}
</tbody>
</table>
{% endmacro parameters_table %}
{% endmacro parameters_table %}
{% macro format_date_nullable(datetime) %}
{% if datetime is null %}
<i>{% trans %}datetime.never{% endtrans %}</i>
{% else %}
{{ datetime|format_datetime }}
{% endif %}
{% endmacro %}