We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 29a7501 + 9cbc49e commit c9ba8c8Copy full SHA for c9ba8c8
src/researchhub/settings.py
@@ -427,6 +427,14 @@ def silky_capture(request):
427
SOCIALACCOUNT_EMAIL_VERIFICATION = "none"
428
SOCIALACCOUNT_EMAIL_REQUIRED = False
429
SOCIALACCOUNT_QUERY_EMAIL = True
430
+# Let Google sign-ins attach to an existing account when the email matches.
431
+# See: https://docs.allauth.org/en/dev/socialaccount/configuration.html
432
+SOCIALACCOUNT_EMAIL_AUTHENTICATION_AUTO_CONNECT = True
433
+SOCIALACCOUNT_PROVIDERS = {
434
+ "google": {
435
+ "EMAIL_AUTHENTICATION": True,
436
+ },
437
+}
438
439
440
GOOGLE_REDIRECT_URL = "http://localhost:8000/auth/google/login/callback/"
0 commit comments