Commit 1072c4b4 authored by Claude Paroz's avatar Claude Paroz

Catch social auth exceptions and report as user messages

parent 8ffd3542
Pipeline #39568 passed with stage
in 4 minutes and 24 seconds
......@@ -123,6 +123,7 @@ MIDDLEWARE = [
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'social_django.middleware.SocialAuthExceptionMiddleware',
]
ATOMIC_REQUESTS = True
......@@ -157,6 +158,7 @@ INTERNAL_IPS=('127.0.0.1',)
SITE_DOMAIN = 'l10n.gnome.org'
LOGIN_REDIRECT_URL = '/'
LOGIN_ERROR_URL = '/' # Used by social_django
SOCIAL_AUTH_USER_MODEL = 'people.Person'
SOCIAL_AUTH_PIPELINE = (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment