summaryrefslogtreecommitdiffstats
path: root/api/user.go
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2017-02-23 08:53:43 -0500
committerJoram Wilander <jwawilander@gmail.com>2017-02-23 08:53:43 -0500
commitca7d3b6e7bc2e52cf40180a462492313f298e760 (patch)
tree4401b86f65d5a31bdaf3162a43969509b1f30229 /api/user.go
parent3b0f7163ab7e58a04c1fcadf7f615448bd4395a0 (diff)
downloadchat-ca7d3b6e7bc2e52cf40180a462492313f298e760.tar.gz
chat-ca7d3b6e7bc2e52cf40180a462492313f298e760.tar.bz2
chat-ca7d3b6e7bc2e52cf40180a462492313f298e760.zip
Adding device Id for version 2 of native apps (#5505)
* Adding device Id for version 2 * Changing ids
Diffstat (limited to 'api/user.go')
-rw-r--r--api/user.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/api/user.go b/api/user.go
index cdb8f4f3e..a81aa85a0 100644
--- a/api/user.go
+++ b/api/user.go
@@ -206,11 +206,6 @@ func attachDeviceId(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
- if !(strings.HasPrefix(deviceId, model.PUSH_NOTIFY_APPLE+":") || strings.HasPrefix(deviceId, model.PUSH_NOTIFY_ANDROID+":")) {
- c.SetInvalidParam("attachDevice", "deviceId")
- return
- }
-
// A special case where we logout of all other sessions with the same device id
if err := app.RevokeSessionsForDeviceId(c.Session.UserId, deviceId, c.Session.Id); err != nil {
c.Err = err