Protect back username field from being modified by social auth login

This commit is contained in:
Yohan Boniface 2023-08-21 17:05:01 +02:00
parent 2b471be171
commit 15e9cf0b5f

View file

@ -264,8 +264,6 @@ LEAFLET_ZOOM = env.int('LEAFLET_ZOOM', default=6)
COMPRESS_ENABLED = True
COMPRESS_OFFLINE = True
SOCIAL_AUTH_NO_DEFAULT_PROTECTED_USER_FIELDS = True
SOCIAL_AUTH_PROTECTED_USER_FIELDS = ("id", )
LOGIN_URL = "login"
SOCIAL_AUTH_LOGIN_REDIRECT_URL = "/login/popup/end/"