mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-22 08:10:26 +00:00
Remove token check
This commit is contained in:
parent
fb586f4a96
commit
300cfe044a
@ -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)
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user