Commit 454dd7cf authored by Michal Čihař's avatar Michal Čihař

No disconnect button when user has only one authenticator

Fixes #834
Fixes rb#242
Fixes rb#44
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 4db04e69
......@@ -192,7 +192,9 @@
<th>{% auth_name assoc.provider '' ' ' %}</th>
<td>{{ assoc.uid }}</th>
<td>
{% if associated.count > 1 %}
<a href="{% url 'social:disconnect_individual' assoc.provider assoc.id %}?next={% url 'profile' %}" class="disconnect btn btn-danger"><i class="fa fa-trash"></i> {% trans "Disconnect" %}</a>
{% endif %}
</td>
</tr>
......
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