Add login using NoteKfet21

This commit is contained in:
Alexandre Iooss 2021-11-11 11:16:03 +01:00
parent 097f4f5093
commit ef53009c38
2 changed files with 8 additions and 0 deletions

View file

@ -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'

View file

@ -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