mirror of
https://github.com/jech/galene.git
synced 2024-11-22 16:45:58 +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
|
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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue