Skip to content

Commit 03e6eaa

Browse files
authored
Merge pull request #528 from pythonindia/remove_markdown_extension
Fix social accounts in login page
2 parents cd3ee00 + 5263dcb commit 03e6eaa

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

junction/templates/account/login.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
{% load i18n %}
33
{% load account %}
44
{% load django_bootstrap_breadcrumbs %}
5+
{% load account socialaccount %}
56

67
{% block head_title %}{% trans "Sign In" %} · {{ block.super }}{% endblock %}
78

@@ -17,7 +18,8 @@
1718
<div class="form-container space-2-bottom {% if form.errors %} has-error {% endif %}">
1819
<h2 class="text-center">{% trans "Sign In" %}</h2>
1920
<div class="pad-2 push-half-top push-2-bottom">
20-
{% if socialaccount.providers %}
21+
{% get_providers as socialaccount_providers %}
22+
{% if socialaccount_providers %}
2123
<p>
2224
{% blocktrans %}Sign in with your third party accounts or using an existing account:{% endblocktrans %}
2325
</p>

junction/templates/socialaccount/snippets/provider_list.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{% load socialaccount %}
2+
{% get_providers as socialaccount_providers %}
23

3-
{% for provider in socialaccount.providers %}
4+
{% for provider in socialaccount_providers %}
45
{% if provider.id == "openid" %}
56
{% for brand in provider.get_brands %}
67
<li>

settings/common.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@
6666
'allauth.socialaccount',
6767
'allauth.socialaccount.providers.google',
6868
'allauth.socialaccount.providers.github',
69-
'allauth.socialaccount.providers.twitter',
70-
'allauth.socialaccount.providers.linkedin',
71-
'allauth.socialaccount.providers.facebook',
7269

7370
'bootstrap3',
7471

0 commit comments

Comments
 (0)