1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-25 10:05: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
}
user.Password = old.Password
desc.Users[username] = *user
newuser := *user
newuser.Password = old.Password
desc.Users[username] = newuser
return rewriteDescriptionFile(desc.FileName, desc)
}