mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-03 00:15:20 +00:00
fix: Slove the problem that the third-party auth cannot update user name
This commit is contained in:
@@ -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)
|
always_update = getattr(settings, 'AUTH_%s_ALWAYS_UPDATE_USER' % source.upper(), False)
|
||||||
if not created and always_update:
|
if not created and always_update:
|
||||||
attr_whitelist = ('user', 'username', 'email', 'phone', 'comment')
|
attr_whitelist = ('name', 'username', 'email', 'phone', 'comment')
|
||||||
logger.debug(
|
logger.debug(
|
||||||
"Receive {} user updated signal: {}, "
|
"Receive {} user updated signal: {}, "
|
||||||
"Update user info: {},"
|
"Update user info: {},"
|
||||||
|
Reference in New Issue
Block a user