summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-07-22 15:05:20 -0400
committerJoramWilander <jwawilander@gmail.com>2015-07-22 15:05:20 -0400
commit41bbbbf4462205348c978a2cce5162f73e35f6b7 (patch)
treefe49bc9d99b34a8e99787af29606b8c5af23c42c /api
parent44cfa364fd3c328523054d8ee2221d6019ad6de1 (diff)
downloadchat-41bbbbf4462205348c978a2cce5162f73e35f6b7.tar.gz
chat-41bbbbf4462205348c978a2cce5162f73e35f6b7.tar.bz2
chat-41bbbbf4462205348c978a2cce5162f73e35f6b7.zip
add changes from team review
Diffstat (limited to 'api')
-rw-r--r--api/user.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/user.go b/api/user.go
index d16ad300a..7a688f28b 100644
--- a/api/user.go
+++ b/api/user.go
@@ -377,6 +377,7 @@ func login(c *Context, w http.ResponseWriter, r *http.Request) {
user = LoginByEmail(c, w, r, props["email"], props["name"], props["password"], props["device_id"])
} else {
c.Err = model.NewAppError("login", "Either user id or team name and user email must be provided", "")
+ c.Err.StatusCode = http.StatusForbidden
return
}