Do not show ui for configuring 2fa if no backends are found

Fixes #13825

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2017-11-23 13:51:39 +01:00
parent 602d07d8aa
commit af69e3b7ac

View File

@ -32,7 +32,7 @@
</form>
</div>
</div>
{% else %}
{% elseif num_backends > 0 %}
<div class="group">
<h2>{% trans "Configure two-factor authentication" %}</h2>
<div class="group-cnt">