diff --git a/api/user.go b/api/user.go index f814a93feb..8f381aeda8 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) {