From d8fb6d44eca788c2b1a2f46e0155dd0c2c3e150e Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 31 Oct 2021 23:42:31 +0100 Subject: [PATCH] adds faktors to user settings --- .../templates/InvenTree/settings/user.html | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/InvenTree/templates/InvenTree/settings/user.html b/InvenTree/templates/InvenTree/settings/user.html index 26e543cd5f..567f36bebf 100644 --- a/InvenTree/templates/InvenTree/settings/user.html +++ b/InvenTree/templates/InvenTree/settings/user.html @@ -155,6 +155,51 @@ +
+
+

{% trans "Multifaktor" %}

+
+ +
+ {% if user.staticdevice_set.all and user.totpdevice_set.all %} +

{% trans 'You have these faktors available:' %}

+ + + + + + + + {% for token in user.totpdevice_set.all %} + + + + + {% endfor %} + {% for token in user.staticdevice_set.all %} + + + + + {% endfor %} + +
TypeName
{% trans 'TOTP' %}{{ token.name }}
{% trans 'Static' %}{{ token.name }}
+ + {% else %} +

{% trans 'Warning:'%} + {% trans "You currently do not have any faktors set up." %} +

+ + {% endif %} +
+ + +
+

{% trans "Theme Settings" %}