diff --git a/src/pretix/control/templates/pretixcontrol/users/form.html b/src/pretix/control/templates/pretixcontrol/users/form.html index 1f846bf8bf..56db1faff2 100644 --- a/src/pretix/control/templates/pretixcontrol/users/form.html +++ b/src/pretix/control/templates/pretixcontrol/users/form.html @@ -1,6 +1,7 @@ {% extends "pretixcontrol/base.html" %} {% load i18n %} {% load bootstrap3 %} +{% load icon %} {% block title %}{% trans "User" %}{% endblock %} {% block content %}
| + {% if d.devicetype == 'totp' %} + TOTP + {% elif d.devicetype == 'u2f' %} + U2F + {% elif d.devicetype == 'webauthn' %} + WebAuthn + {% elif d.devicetype == 'emergency' %} + {% trans "Emergency tokens" %} + {% endif %} + {% if d.confirmed %} + {% icon "check" %} + {% else %} + {% icon "warning" %} + {% endif %} + | ++ {{ d.name }} + | +
+ {% if d.throttling_failure_timestamp %}
+ {% blocktrans trimmed with date=d.throttling_failure_timestamp|date:"SHORT_DATETIME_FORMAT" count cnt=d.throttling_failure_count %}
+ 1 failed attempt since {{ date }}
+ {% plural %}
+ {{ cnt }} failed attempts since {{ date }}
+ {% endblocktrans %}
+ + {% endif %} + {% if d.devicetype == 'totp' %} + + step = {{ d.step }},
+ t0 = {{ d.t0 }},
+ digits = {{ d.digits }},
+ tolerance = {{ d.tolerance }},
+ drift = {{ d.drift }},
+ last_t = {{ d.last_t }}
+
+ {% elif d.devicetype == 'u2f' %}
+
+ sign_count = {{ d.sign_count }}
+
+ {% elif d.devicetype == 'emergency' %}
+
+ token_count = {{ d.token_set.count }}
+
+ {% endif %}
+ |
+