use post requests for disconnecting from social account
This commit is contained in:
parent
4753a2a84c
commit
808c9e7d5d
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user