mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Revert "Letting email not validated error message through login. Changing invalid credentials error. (#3546)"
This reverts commit 128e4f984a.
This commit is contained in:
@@ -472,11 +472,7 @@ 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())
|
||||
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, "")
|
||||
}
|
||||
c.Err = model.NewLocAppError("login", "api.user.login.invalid_credentials", nil, "")
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -1781,7 +1781,7 @@
|
||||
},
|
||||
{
|
||||
"id": "api.user.login.invalid_credentials",
|
||||
"translation": "Your login credentials are incorrect."
|
||||
"translation": "User ID or password incorrect."
|
||||
},
|
||||
{
|
||||
"id": "api.user.login.not_provided.app_error",
|
||||
|
||||
Reference in New Issue
Block a user