social_auth: Clear session fields leftover from previous auth attempts.

Fixes #13560.
This commit is contained in:
Mateusz Mandera
2020-01-27 12:05:32 +01:00
committed by Tim Abbott
parent bd58e3397f
commit c618f0770e
4 changed files with 51 additions and 0 deletions

View File

@@ -224,6 +224,10 @@ SILENCED_SYSTEM_CHECKS = [
# backends support the username not being unique; and they do.
# See: https://docs.djangoproject.com/en/1.11/topics/auth/customizing/#django.contrib.auth.models.CustomUser.USERNAME_FIELD
"auth.W004",
# urls.W003 warns against using colons in the name in url(..., name) because colons are used
# for namespaces. We need to override a url entry in the social: namespace, so we use
# the colon in this way intentionally.
"urls.W003",
]
########################################################################