Commit bf77ab4c authored by Pietro Albini's avatar Pietro Albini Committed by Milo Casagrande

Removed ability to delete all ids, when only one id is available.

parents 8f1c8873 a6a452e2
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<p class="message">{% blocktrans %}These are the external authentication providers currently associated with your account.{% endblocktrans %}</p> <p class="message">{% blocktrans %}These are the external authentication providers currently associated with your account.{% endblocktrans %}</p>
<div> <div>
{% for key in auth_keys %} {% for key in auth_keys %}
<p>{{ key.name }} (<a href="{% url user_remove_external_provider id=key.id %}">{% trans "remove" %}</a>)</p> <p>{{ key.name }} {% if auth_keys|length > 1 %} (<a href="{% url user_remove_external_provider id=key.id %}">{% trans "remove" %}</a>) {% endif %}</p>
{% endfor %} {% endfor %}
</div> </div>
{% endif %} {% endif %}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment