mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Allows remote users to change their username (#27839)
This commit is contained in:
parent
9466b948ad
commit
2be8f2f349
@ -212,9 +212,9 @@ func (scs *Service) upsertSyncUser(c request.CTX, user *model.User, channel *mod
|
||||
// save the updated username and email in props
|
||||
user.SetProp(model.UserPropsKeyRemoteUsername, user.Username)
|
||||
user.SetProp(model.UserPropsKeyRemoteEmail, user.Email)
|
||||
// TODO: MM-59398: allow patching username with munged, unique name
|
||||
|
||||
patch := &model.UserPatch{
|
||||
Username: &user.Username,
|
||||
Nickname: &user.Nickname,
|
||||
FirstName: &user.FirstName,
|
||||
LastName: &user.LastName,
|
||||
|
Loading…
Reference in New Issue
Block a user