fix oauth
All checks were successful
Docker / build (release) Successful in 8s

This commit is contained in:
krek0 2026-05-16 19:47:03 +02:00
parent 1de1cb4086
commit ab1b68c456
7 changed files with 32 additions and 6 deletions

View file

@ -118,6 +118,7 @@ TEMPLATES = [
"django.template.context_processors.request",
"django.contrib.auth.context_processors.auth",
"django.contrib.messages.context_processors.messages",
"photo21.views.oauth_context",
],
},
},
@ -282,6 +283,9 @@ ACCOUNT_FORMS = {"signup": "photo21.forms.CustomSignupForm"}
if OAUTH_ENABLED:
SOCIALACCOUNT_ONLY = OAUTH_ONLY
if OAUTH_ONLY:
ACCOUNT_EMAIL_VERIFICATION = 'none'
SOCIALACCOUNT_LOGIN_ON_GET = True
SOCIALACCOUNT_PROVIDERS = {
"oauth": {
"SCOPE": OAUTH_SCOPE,