mirror of https://github.com/portainer/portainer
fix(app): remove passwords from registries list response (#334)
parent
7f089fab86
commit
9044b25a23
|
@ -36,5 +36,9 @@ func (handler *Handler) registryList(w http.ResponseWriter, r *http.Request) *ht
|
|||
return httperror.InternalServerError("Unable to retrieve registries from the database", err)
|
||||
}
|
||||
|
||||
for idx := range registries {
|
||||
hideFields(®istries[idx], false)
|
||||
}
|
||||
|
||||
return response.JSON(w, registries)
|
||||
}
|
||||
|
|
|
@ -70,7 +70,6 @@ export interface Registry {
|
|||
BaseURL: string;
|
||||
Authentication: boolean;
|
||||
Username: string;
|
||||
Password?: string;
|
||||
RegistryAccesses: RegistryAccesses | null;
|
||||
Gitlab: Gitlab;
|
||||
Quay: Quay;
|
||||
|
|
|
@ -15,7 +15,6 @@ function buildTestRegistry(
|
|||
Name: name,
|
||||
Username: '',
|
||||
Authentication: false,
|
||||
Password: '',
|
||||
BaseURL: '',
|
||||
Ecr: { Region: '' },
|
||||
Github: { OrganisationName: '', UseOrganisation: false },
|
||||
|
|
Loading…
Reference in New Issue