fix spelling

This commit is contained in:
Matthias 2021-11-01 22:46:56 +01:00
parent fc0e80dd76
commit 3cb2078821
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076
2 changed files with 7 additions and 7 deletions

View File

@ -855,7 +855,7 @@ class InvenTreeSetting(BaseInvenTreeSetting):
}, },
'LOGIN_ENFORCE_MFA': { 'LOGIN_ENFORCE_MFA': {
'name': _('Enforce MFA'), 'name': _('Enforce MFA'),
'description': _('Users must use multifaktor security.'), 'description': _('Users must use multifactor security.'),
'default': False, 'default': False,
'validator': bool, 'validator': bool,
}, },

View File

@ -157,12 +157,12 @@
<div class="row"> <div class="row">
<div class='panel-heading'> <div class='panel-heading'>
<h4>{% trans "Multifaktor" %}</h4> <h4>{% trans "Multifactor" %}</h4>
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
{% if user.staticdevice_set.all or user.totpdevice_set.all %} {% if user.staticdevice_set.all or user.totpdevice_set.all %}
<p>{% trans 'You have these faktors available:' %}</p> <p>{% trans 'You have these factors available:' %}</p>
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
@ -187,17 +187,17 @@
{% else %} {% else %}
<p><strong>{% trans 'Warning:'%}</strong> <p><strong>{% trans 'Warning:'%}</strong>
{% trans "You currently do not have any faktors set up." %} {% trans "You currently do not have any factors set up." %}
</p> </p>
{% endif %} {% endif %}
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<h5>{% trans "Change faktors" %}</h5> <h5>{% trans "Change factors" %}</h5>
<a href="{% url 'two-factor-setup' %}" class="btn btn-primary" {% if user.staticdevice_set.all and user.totpdevice_set.all %}disabled{% endif %}>{% trans "Setup multifaktor" %}</a> <a href="{% url 'two-factor-setup' %}" class="btn btn-primary" {% if user.staticdevice_set.all and user.totpdevice_set.all %}disabled{% endif %}>{% trans "Setup multifactor" %}</a>
{% if user.staticdevice_set.all or user.totpdevice_set.all %} {% if user.staticdevice_set.all or user.totpdevice_set.all %}
<a href="{% url 'two-factor-remove' %}" class="btn btn-primary">{% trans "Remove multifaktor" %}</a> <a href="{% url 'two-factor-remove' %}" class="btn btn-primary">{% trans "Remove multifactor" %}</a>
{% endif %} {% endif %}
</div> </div>
</div> </div>