diff --git a/e2e/playwright/auth_test.go b/e2e/playwright/auth_test.go index ec439b8a0..51b790f1e 100644 --- a/e2e/playwright/auth_test.go +++ b/e2e/playwright/auth_test.go @@ -121,7 +121,7 @@ func TestAuth(t *testing.T) { require.NoError(t, buttonLocator.Click()) errorText, err := errorLocator.TextContent() require.NoError(t, err) - require.Contains(t, errorText, "username or password invalid") + require.Contains(t, errorText, "username or password do not match") }) t.Run("empty username validation", func(t *testing.T) { diff --git a/internal/domains/auth.go b/internal/domains/auth.go index 247c5f40f..5e3869af6 100644 --- a/internal/domains/auth.go +++ b/internal/domains/auth.go @@ -55,13 +55,13 @@ func (d *AuthDomain) GetAccountFromCredentials(ctx context.Context, username, pa } if len(accounts) != 1 { - return nil, fmt.Errorf("username org password do not match") + return nil, fmt.Errorf("username or password do not match") } account := accounts[0] if err := bcrypt.CompareHashAndPassword([]byte(account.Password), []byte(password)); err != nil { - return nil, fmt.Errorf("username org password do not match") + return nil, fmt.Errorf("username or password do not match") } return model.Ptr(account.ToDTO()), nil