Skip to content

Commit 245c76a

Browse files
authored
Fix allauth login page (#310)
1 parent 6ca3008 commit 245c76a

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

democrasite/templates/account/login.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,17 @@ <h1>{% trans "Sign In" %}</h1>
1212
<p>{% blocktrans %}Please log in or sign up with a third party account.{% endblocktrans %}</p>
1313
<div class="socialaccount_ballot">
1414
<ul class="socialaccount_providers">
15-
{% include "socialaccount/snippets/provider_list.html" with process="login" %}
15+
{% for provider in socialaccount_providers %}
16+
<li>
17+
{# For security, we use POST to log the user in #}
18+
<form action="{% provider_login_url provider.id next=request.path %}"
19+
method="post">
20+
{% csrf_token %}
21+
<button type="submit"
22+
class="btn btn-link py-0 socialaccount_provider {{ provider.id }}">{{ provider.name }}</button>
23+
</form>
24+
{% endfor %}
25+
</li>
1626
</ul>
1727
</div>
1828
{% providers_media_js %}

0 commit comments

Comments
 (0)