This commit is contained in:
parent
1de1cb4086
commit
9ba43950b8
9 changed files with 39 additions and 13 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue