diff options
author | JoramWilander <jwawilander@gmail.com> | 2015-07-22 15:05:20 -0400 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2015-07-22 15:05:20 -0400 |
commit | 41bbbbf4462205348c978a2cce5162f73e35f6b7 (patch) | |
tree | fe49bc9d99b34a8e99787af29606b8c5af23c42c /api | |
parent | 44cfa364fd3c328523054d8ee2221d6019ad6de1 (diff) | |
download | chat-41bbbbf4462205348c978a2cce5162f73e35f6b7.tar.gz chat-41bbbbf4462205348c978a2cce5162f73e35f6b7.tar.bz2 chat-41bbbbf4462205348c978a2cce5162f73e35f6b7.zip |
add changes from team review
Diffstat (limited to 'api')
-rw-r--r-- | api/user.go | 1 |
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 } |