diff --git a/group/description.go b/group/description.go index 8bb2ac3..14643f7 100644 --- a/group/description.go +++ b/group/description.go @@ -679,8 +679,9 @@ func UpdateUser(group, username, etag string, user *UserDescription) error { return ErrTagMismatch } - user.Password = old.Password - desc.Users[username] = *user + newuser := *user + newuser.Password = old.Password + desc.Users[username] = newuser return rewriteDescriptionFile(desc.FileName, desc) }