Skip to content

[Fix] Handle Custom Response for Incorrect Credentials #8549

@adkif

Description

@adkif

Description

Currently, when users provide incorrect credentials during login, the backend API response is displayed directly in the UI. This is not user-friendly and could expose sensitive implementation details. We need to intercept this response and display a custom error message instead.

Acceptance Criteria

  1. Replace the raw backend error response with a user-friendly error message like:

“Invalid username or password. Please try again.”

  1. Ensure error messages are localized (if i18n is in use).
  2. Handle all edge cases such as:

Incorrect format of backend error response.
Network issues or timeouts.

  1. Maintain consistency in UI design for error messages (e.g., use Nebular toastr).

Note

Ensure the HTTP interceptor (if used) does not override this custom message.
The existing login service should handle the backend response and emit the custom message via error-handling logic.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions