add changes from team review

This commit is contained in:
JoramWilander
2015-07-22 15:05:20 -04:00
parent 44cfa364fd
commit 41bbbbf446
5 changed files with 13 additions and 12 deletions
+1
View File
@@ -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
}