diff options
author | George Goldberg <george@gberg.me> | 2017-09-01 16:42:02 +0100 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2017-09-01 11:42:02 -0400 |
commit | e85b5fb98835fb952eb2ed55f81e79eb3ef361ec (patch) | |
tree | abe78804cd5e1175954f74b811a6d6a7af089d0b /app/login.go | |
parent | d9ec7d9240a508571904c22458222e2846c2b5b4 (diff) | |
download | chat-e85b5fb98835fb952eb2ed55f81e79eb3ef361ec.tar.gz chat-e85b5fb98835fb952eb2ed55f81e79eb3ef361ec.tar.bz2 chat-e85b5fb98835fb952eb2ed55f81e79eb3ef361ec.zip |
App: NewLocAppError -> NewAppError (#7327)
* App: NewLocAppError -> NewAppError
* Remove statuscode that got missed.
Diffstat (limited to 'app/login.go')
-rw-r--r-- | app/login.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/login.go b/app/login.go index 819d2081a..63f713cc8 100644 --- a/app/login.go +++ b/app/login.go @@ -17,8 +17,7 @@ import ( func AuthenticateUserForLogin(id, loginId, password, mfaToken, deviceId string, ldapOnly bool) (*model.User, *model.AppError) { if len(password) == 0 { - err := model.NewLocAppError("AuthenticateUserForLogin", "api.user.login.blank_pwd.app_error", nil, "") - err.StatusCode = http.StatusBadRequest + err := model.NewAppError("AuthenticateUserForLogin", "api.user.login.blank_pwd.app_error", nil, "", http.StatusBadRequest) return nil, err } |