Skip to content

Commit 839d6af

Browse files
committed
Issue #366 solved, user is able to connect twitter facebook and linkedin
1 parent 5649824 commit 839d6af

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
4+
from django.db import migrations, models
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
('tickets', '0001_initial'),
11+
]
12+
13+
operations = [
14+
migrations.AlterField(
15+
model_name='ticket',
16+
name='email',
17+
field=models.EmailField(max_length=254),
18+
)
19+
]

settings/common.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@
6565
'allauth.socialaccount',
6666
'allauth.socialaccount.providers.google',
6767
'allauth.socialaccount.providers.github',
68+
'allauth.socialaccount.providers.twitter',
69+
'allauth.socialaccount.providers.linkedin',
70+
'allauth.socialaccount.providers.facebook',
6871

6972
'bootstrap3',
7073

@@ -101,7 +104,7 @@
101104
# Needed to login by username in Django admin, regardless of `allauth`
102105
"django.contrib.auth.backends.ModelBackend",
103106
# `allauth` specific authentication methods, such as login by e-mail
104-
"allauth.account.auth_backends.AuthenticationBackend"
107+
"allauth.account.auth_backends.AuthenticationBackend",
105108
)
106109

107110
ACCOUNT_AUTHENTICATION_METHOD = "username_email"

0 commit comments

Comments
 (0)