Letting email not validated error message through login. Changing invalid credentials error. (#3546)

This commit is contained in:
Christopher Speller
2016-07-12 10:08:54 -04:00
committed by Harrison Healey
parent d953051c06
commit 128e4f984a
2 changed files with 6 additions and 2 deletions

View File

@@ -472,7 +472,11 @@ func login(c *Context, w http.ResponseWriter, r *http.Request) {
if user, err = authenticateUser(user, password, mfaToken); err != nil {
c.LogAuditWithUserId(user.Id, "failure")
//c.Err = model.NewLocAppError("login", "api.user.login.invalid_credentials", nil, err.Error())
c.Err = model.NewLocAppError("login", "api.user.login.invalid_credentials", nil, "")
if err.Id == "api.user.login.not_verified.app_error" {
c.Err = err
} else {
c.Err = model.NewLocAppError("login", "api.user.login.invalid_credentials", nil, "")
}
return
}

View File

@@ -1781,7 +1781,7 @@
},
{
"id": "api.user.login.invalid_credentials",
"translation": "User ID or password incorrect."
"translation": "Your login credentials are incorrect."
},
{
"id": "api.user.login.not_provided.app_error",