jaygajera17 / E-commerce-project-springBoot

This project serves as an easy-to-understand setup for beginners , providing a base foundation in Spring Boot , MVC & hibernate.
https://jaygajera17.github.io/E-commerce-project-springBoot/
560 stars 564 forks source link

Error message not displaying when customer/admin login fails #44

Closed kliu57 closed 10 months ago

kliu57 commented 10 months ago

Steps to reproduce this issue:

  1. Start the server and go to the user registration page http://localhost:8080/.

  2. Enter non-existing username and password and click Login.

image

  1. An error is thrown. We expect to see the Log in page with an nicely formatted error message for the user.

image


Similar issue for admin log in. For example, go to a page that requires admin access such as customers page http://localhost:8080/admin/customers

image

image

Reason this is a problem:

There is existing code for showing error messages. This is a bug that can be fixed.

Proposed fix:

Fix the areas in the code that is causing the bug and have the predefined error messages display successfully on the Log in page for both customer log in and admin log in.