1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-09 18:25:58 +01:00

Copy user structure in UpdateUser.

This commit is contained in:
Juliusz Chroboczek 2024-05-08 14:24:37 +02:00
parent 46ed942300
commit f0ebf4d63c

View file

@ -679,8 +679,9 @@ func UpdateUser(group, username, etag string, user *UserDescription) error {
return ErrTagMismatch return ErrTagMismatch
} }
user.Password = old.Password newuser := *user
desc.Users[username] = *user newuser.Password = old.Password
desc.Users[username] = newuser
return rewriteDescriptionFile(desc.FileName, desc) return rewriteDescriptionFile(desc.FileName, desc)
} }