fix: Slove the problem that the third-party auth cannot update user name

v3
jiangweidong 2025-03-06 16:57:03 +08:00 committed by Bryan
parent 180303ccb4
commit 77d8083c00
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ def user_authenticated_handle(user, created, source, attrs=None, **kwargs):
always_update = getattr(settings, 'AUTH_%s_ALWAYS_UPDATE_USER' % source.upper(), False)
if not created and always_update:
attr_whitelist = ('user', 'username', 'email', 'phone', 'comment')
attr_whitelist = ('name', 'username', 'email', 'phone', 'comment')
logger.debug(
"Receive {} user updated signal: {}, "
"Update user info: {},"