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 %}
<li><a href="{% url 'social:begin' backend %}">{{ backend }}</a></li> <form method="get" action="{% url 'social:begin' backend %}"
style="display: inline-block;">
<button type="submit" class="btn btn-xs btn-success">{{ backend }}</button>
</form>
{% endfor %} {% endfor %}
</ul>
<h1>Deassociate from remote Account</h1> <h1>Deassociate from remote Account</h1>
<ul>
{% for socauth in backends.associated %} {% for socauth in backends.associated %}
<li><a href="{% url 'social:disconnect_individual' socauth.provider socauth.pk %}">{{ socauth.provider }}</a></li> <form method="post" action="{% url 'social:disconnect_individual' socauth.provider socauth.pk %}"
style="display: inline-block;">
{% csrf_token %}
<button type="submit" class="btn btn-xs btn-danger">{{ socauth.provider }}</button>
</form>
{% endfor %} {% endfor %}
</ul>
</div> </div>
<div class="col-lg-1"> <div class="col-lg-1">
</div> </div>