fix: strip BasicAuth credentials from project webhook API responses
This commit is contained in:
parent
751ab2c635
commit
75c9b753a8
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue