A software developed using Java SE which provides as easy way to track the products, suppliers, customers as well as purchase and sales information. It also records the stock currently available in the store.
Describe the bug
Normal users can’t login. The reason for the bug is that in ConnectionFactory class the checkLogin method is having hard-coded SQL query for ADMINISTRATOR instead of ADMINISTRATOR or Normal User. Therefore, if a Normal User tries to login into the application. This query returns a NULL result.
To Reproduce
Steps to reproduce the behavior:
Enter Username : (Normal User's username)
Enter password : (Normal User's password)
User gets login error.
Expected behavior
Users should allow logging into the system if their Username and password associated with the Username is correct.
Describe the bug Normal users can’t login. The reason for the bug is that in ConnectionFactory class the checkLogin method is having hard-coded SQL query for ADMINISTRATOR instead of ADMINISTRATOR or Normal User. Therefore, if a Normal User tries to login into the application. This query returns a NULL result.
To Reproduce Steps to reproduce the behavior:
Expected behavior Users should allow logging into the system if their Username and password associated with the Username is correct.
Screenshots