fix: strip BasicAuth credentials from project webhook API responses

This commit is contained in:
kolaente 2026-03-23 16:11:43 +01:00 committed by kolaente
parent 751ab2c635
commit 75c9b753a8
1 changed files with 2 additions and 0 deletions

View File

@ -234,6 +234,8 @@ func (w *Webhook) ReadAll(s *xorm.Session, a web.Auth, _ string, page int, perPa
for _, webhook := range ws {
webhook.Secret = ""
webhook.BasicAuthUser = ""
webhook.BasicAuthPassword = ""
if createdBy, has := users[webhook.CreatedByID]; has {
webhook.CreatedBy = createdBy
}