diff options
Diffstat (limited to 'api/user.go')
-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 } |