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

Этот коммит содержится в:
Christopher Speller
2016-07-12 10:08:54 -04:00
коммит произвёл Harrison Healey
родитель d953051c06
Коммит 128e4f984a
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@@ -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
}

Просмотреть файл

@@ -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",