File tree Expand file tree Collapse file tree
democrasite/templates/account Expand file tree Collapse file tree Original file line number Diff line number Diff 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 %}
You can’t perform that action at this time.
0 commit comments