diff --git a/pkg/services/alerting/notifiers/webhook.go b/pkg/services/alerting/notifiers/webhook.go index 8d5f3f2a6ea..e9894c7b076 100644 --- a/pkg/services/alerting/notifiers/webhook.go +++ b/pkg/services/alerting/notifiers/webhook.go @@ -29,19 +29,8 @@ func init() {
-
-
- - -
-
- - reset -
+ Username +
@@ -106,13 +95,12 @@ func NewWebHookNotifier(model *models.AlertNotification) (alerting.Notifier, err return nil, alerting.ValidationError{Reason: "Could not find url property in settings"} } - username := model.DecryptedValue("username", model.Settings.Get("username").MustString()) password := model.DecryptedValue("password", model.Settings.Get("password").MustString()) return &WebhookNotifier{ NotifierBase: NewNotifierBase(model), URL: url, - User: username, + User: model.Settings.Get("username").MustString(), Password: password, HTTPMethod: model.Settings.Get("httpMethod").MustString("POST"), log: log.New("alerting.notifier.webhook"),