Fix webhook username mismatch

Fixing variable name mismatch so that the Authorization HTTP header is added to webhook notifications.
This commit is contained in:
Mark Theisen
2017-01-10 10:34:51 +01:00
committed by bergquist
parent eac75ec303
commit 3205d1e754
+1 -1
View File
@@ -22,7 +22,7 @@ func NewWebHookNotifier(model *m.AlertNotification) (alerting.Notifier, error) {
return &WebhookNotifier{
NotifierBase: NewNotifierBase(model.Id, model.IsDefault, model.Name, model.Type, model.Settings),
Url: url,
User: model.Settings.Get("user").MustString(),
User: model.Settings.Get("username").MustString(),
Password: model.Settings.Get("password").MustString(),
HttpMethod: model.Settings.Get("httpMethod").MustString("POST"),
log: log.New("alerting.notifier.webhook"),