mirror of
https://github.com/jech/galene.git
synced 2024-11-22 08:35:57 +01:00
Copy user structure in UpdateUser.
This commit is contained in:
parent
46ed942300
commit
f0ebf4d63c
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue