summaryrefslogtreecommitdiffstats
path: root/bridge/mattermost/mattermost.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-10-26 16:47:56 +0200
committerGitHub <noreply@github.com>2018-10-26 16:47:56 +0200
commit107969c09a044cbce185a50a63cf58e0281eafc3 (patch)
treed7c196d57f00d21cf0ae72c30a326371cbe238c1 /bridge/mattermost/mattermost.go
parentd379118772aa68d0b35bb5a98b5600dc81a89197 (diff)
downloadmatterbridge-msglm-107969c09a044cbce185a50a63cf58e0281eafc3.tar.gz
matterbridge-msglm-107969c09a044cbce185a50a63cf58e0281eafc3.tar.bz2
matterbridge-msglm-107969c09a044cbce185a50a63cf58e0281eafc3.zip
Split up cookie token and personal token (mattermost). Fixes #530 (#540)
Diffstat (limited to 'bridge/mattermost/mattermost.go')
-rw-r--r--bridge/mattermost/mattermost.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/mattermost/mattermost.go b/bridge/mattermost/mattermost.go
index 12b5097f..2fed284e 100644
--- a/bridge/mattermost/mattermost.go
+++ b/bridge/mattermost/mattermost.go
@@ -273,7 +273,7 @@ func (b *Bmattermost) handleMatterHook(messages chan *config.Message) {
func (b *Bmattermost) apiLogin() error {
password := b.GetString("Password")
if b.GetString("Token") != "" {
- password = "MMAUTHTOKEN=" + b.GetString("Token")
+ password = "token=" + b.GetString("Token")
}
b.mc = matterclient.New(b.GetString("Login"), password, b.GetString("Team"), b.GetString("Server"))