Add login using NoteKfet21
This commit is contained in:
parent
097f4f5093
commit
ef53009c38
2 changed files with 8 additions and 0 deletions
|
|
@ -60,6 +60,7 @@ INSTALLED_APPS = [
|
|||
'allauth',
|
||||
'allauth.account',
|
||||
'allauth.socialaccount',
|
||||
'allauth_note_kfet',
|
||||
'crispy_forms',
|
||||
'photologue_custom',
|
||||
'photologue',
|
||||
|
|
@ -227,6 +228,12 @@ ACCOUNT_EMAIL_REQUIRED = True
|
|||
ACCOUNT_EMAIL_VERIFICATION = "mandatory"
|
||||
ACCOUNT_AUTHENTICATION_METHOD = "username_email"
|
||||
ACCOUNT_FORMS = {'signup': 'photo21.forms.CustomSignupForm'}
|
||||
SOCIALACCOUNT_PROVIDERS = {
|
||||
'notekfet': {
|
||||
# Fetch user profile
|
||||
'SCOPE': ['1_1'],
|
||||
},
|
||||
}
|
||||
|
||||
# Use Bootstrap forms
|
||||
CRISPY_TEMPLATE_PACK = 'bootstrap4'
|
||||
|
|
|
|||
|
|
@ -3,3 +3,4 @@ django-photologue~=3.13
|
|||
django-taggit>=0.24.0
|
||||
django-crispy-forms~=1.7
|
||||
django-allauth>=0.44
|
||||
git+https://gitlab.crans.org/bde/allauth-note-kfet.git
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue