mirror of https://github.com/portainer/portainer
hide the password in the response (#8437)
parent
e255bd710f
commit
44d69f3a3f
|
@ -125,5 +125,8 @@ func (handler *Handler) userUpdate(w http.ResponseWriter, r *http.Request) *http
|
|||
// remove all of the users persisted API keys
|
||||
handler.apiKeyService.InvalidateUserKeyCache(user.ID)
|
||||
|
||||
// hide the password field in the response payload
|
||||
user.Password = ""
|
||||
|
||||
return response.JSON(w, user)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue