gray-mueller / gray-mueller/restaurant-ordering-system-using-react-js

Login Fails for All Emails Except Demo Customer Email

Open
#107 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
In the customer app, users are unable to log in using any email address other than the pre-configured demo customer email. Attempts to log in with a valid registered email result in an error or no response, effectively locking out real users.

To Reproduce
Steps to reproduce the behavior:

Open the customer app
Go to the email login screen
Enter any email other than the demo email (e.g., testuser@gmail.com)
Enter a valid password and attempt to log in
Observe that the login fails with an error
Expected behavior
Users should be able to log in with any valid, registered email address, not just the demo account.

Screenshots

XRecorder_20250619_04.mp4
Smartphone (please complete the following information):

Device: Samsung A15

OS: Android 14

Additional context
This issue may be caused by hardcoded logic tied to the demo account, authentication configuration errors, or backend user validation bugs. It critically affects usability and needs to be resolved to enable access for real customers.

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure in the customer app with a registered email other than the demo account, using the steps in the issue. Trace the login and authentication flow to find where non-demo users are rejected or receive no response. Done means any valid registered email can log in successfully, while the demo account continues to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
authentication, backend, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.