use post requests for disconnecting from social account

This commit is contained in:
Thomas Waldmann 2013-11-02 09:28:29 +01:00
parent 4753a2a84c
commit 808c9e7d5d

View File

@ -15,17 +15,20 @@
</div> </div>
<div class="col-lg-6"> <div class="col-lg-6">
<h1>Associate with remote Account</h1> <h1>Associate with remote Account</h1>
<ul> {% for backend in backends.not_associated %}
{% for backend in backends.not_associated %} <form method="get" action="{% url 'social:begin' backend %}"
<li><a href="{% url 'social:begin' backend %}">{{ backend }}</a></li> style="display: inline-block;">
{% endfor %} <button type="submit" class="btn btn-xs btn-success">{{ backend }}</button>
</ul> </form>
{% endfor %}
<h1>Deassociate from remote Account</h1> <h1>Deassociate from remote Account</h1>
<ul> {% for socauth in backends.associated %}
{% for socauth in backends.associated %} <form method="post" action="{% url 'social:disconnect_individual' socauth.provider socauth.pk %}"
<li><a href="{% url 'social:disconnect_individual' socauth.provider socauth.pk %}">{{ socauth.provider }}</a></li> style="display: inline-block;">
{% endfor %} {% csrf_token %}
</ul> <button type="submit" class="btn btn-xs btn-danger">{{ socauth.provider }}</button>
</form>
{% endfor %}
</div> </div>
<div class="col-lg-1"> <div class="col-lg-1">
</div> </div>