From 300cfe044ac080c512aec2eebe9af05887a45ac8 Mon Sep 17 00:00:00 2001 From: Wim Date: Tue, 12 Jul 2016 00:23:36 +0200 Subject: Remove token check --- bridge/bridge.go | 5 ++--- bridge/config.go | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/bridge/bridge.go b/bridge/bridge.go index b6445be2..406e4687 100644 --- a/bridge/bridge.go +++ b/bridge/bridge.go @@ -79,9 +79,8 @@ func NewBridge(name string, config *Config, kind string) *Bridge { } if kind == Legacy { b.mh = matterhook.New(b.Config.Mattermost.URL, - matterhook.Config{Token: b.Config.Mattermost.Token, - InsecureSkipVerify: b.Config.Mattermost.SkipTLSVerify, - BindAddress: b.Config.Mattermost.BindAddress}) + matterhook.Config{InsecureSkipVerify: b.Config.Mattermost.SkipTLSVerify, + BindAddress: b.Config.Mattermost.BindAddress}) } else { b.mc = matterclient.New(b.Config.Mattermost.Login, b.Config.Mattermost.Password, b.Config.Mattermost.Team, b.Config.Mattermost.Server) diff --git a/bridge/config.go b/bridge/config.go index 2bec5108..1daa04d8 100644 --- a/bridge/config.go +++ b/bridge/config.go @@ -22,7 +22,6 @@ type Config struct { Mattermost struct { URL string ShowJoinPart bool - Token string IconURL string SkipTLSVerify bool BindAddress string -- cgit v1.2.3