mirror of
https://github.com/portainer/portainer.git
synced 2025-07-31 03:09:44 +02:00
hide the password in the response (#8437)
This commit is contained in:
parent
e255bd710f
commit
44d69f3a3f
1 changed files with 3 additions and 0 deletions
|
@ -125,5 +125,8 @@ func (handler *Handler) userUpdate(w http.ResponseWriter, r *http.Request) *http
|
||||||
// remove all of the users persisted API keys
|
// remove all of the users persisted API keys
|
||||||
handler.apiKeyService.InvalidateUserKeyCache(user.ID)
|
handler.apiKeyService.InvalidateUserKeyCache(user.ID)
|
||||||
|
|
||||||
|
// hide the password field in the response payload
|
||||||
|
user.Password = ""
|
||||||
|
|
||||||
return response.JSON(w, user)
|
return response.JSON(w, user)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue