summaryrefslogtreecommitdiffstats
path: root/api/user.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2016-02-08 14:30:58 -0800
committer=Corey Hulen <corey@hulen.com>2016-02-08 14:30:58 -0800
commitfbe932ece61375e4d74e50449346f0b3a87821d1 (patch)
tree4e624a00229347210f105ee83e2c3a195159777b /api/user.go
parent137920b479b9cb6688a4ad683c67280549680c70 (diff)
downloadchat-fbe932ece61375e4d74e50449346f0b3a87821d1.tar.gz
chat-fbe932ece61375e4d74e50449346f0b3a87821d1.tar.bz2
chat-fbe932ece61375e4d74e50449346f0b3a87821d1.zip
Fixing attaching device id
Diffstat (limited to 'api/user.go')
-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) {