summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2016-02-08 14:48:54 -0800
committerCorey Hulen <corey@hulen.com>2016-02-08 14:48:54 -0800
commit8b0143edb36fd5525c48f281c9049dad21fc2658 (patch)
tree4e624a00229347210f105ee83e2c3a195159777b
parent137920b479b9cb6688a4ad683c67280549680c70 (diff)
parentfbe932ece61375e4d74e50449346f0b3a87821d1 (diff)
downloadchat-8b0143edb36fd5525c48f281c9049dad21fc2658.tar.gz
chat-8b0143edb36fd5525c48f281c9049dad21fc2658.tar.bz2
chat-8b0143edb36fd5525c48f281c9049dad21fc2658.zip
Merge pull request #2109 from mattermost/fix-device
Fixing attaching device id
-rw-r--r--api/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/user.go b/api/user.go
index f814a93fe..8f381aeda 100644
--- a/api/user.go
+++ b/api/user.go
@@ -796,7 +796,7 @@ func attachDeviceId(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
- w.Write([]byte(deviceId))
+ w.Write([]byte(model.MapToJson(props)))
}
func RevokeSessionById(c *Context, sessionId string) {