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'