Remove token check

This commit is contained in:
Wim 2016-07-12 00:23:36 +02:00
parent fb586f4a96
commit 300cfe044a
2 changed files with 2 additions and 4 deletions

View File

@ -79,9 +79,8 @@ func NewBridge(name string, config *Config, kind string) *Bridge {
} }
if kind == Legacy { if kind == Legacy {
b.mh = matterhook.New(b.Config.Mattermost.URL, b.mh = matterhook.New(b.Config.Mattermost.URL,
matterhook.Config{Token: b.Config.Mattermost.Token, matterhook.Config{InsecureSkipVerify: b.Config.Mattermost.SkipTLSVerify,
InsecureSkipVerify: b.Config.Mattermost.SkipTLSVerify, BindAddress: b.Config.Mattermost.BindAddress})
BindAddress: b.Config.Mattermost.BindAddress})
} else { } else {
b.mc = matterclient.New(b.Config.Mattermost.Login, b.Config.Mattermost.Password, b.mc = matterclient.New(b.Config.Mattermost.Login, b.Config.Mattermost.Password,
b.Config.Mattermost.Team, b.Config.Mattermost.Server) b.Config.Mattermost.Team, b.Config.Mattermost.Server)

View File

@ -22,7 +22,6 @@ type Config struct {
Mattermost struct { Mattermost struct {
URL string URL string
ShowJoinPart bool ShowJoinPart bool
Token string
IconURL string IconURL string
SkipTLSVerify bool SkipTLSVerify bool
BindAddress string BindAddress string