Email + Password authentication flow for admin/staff users
The admin panel uses traditional email and password authentication. Only users with admin or staff roles can access the panel. The login page uses Material UI components and integrates with React Admin's authentication system.
| Password | Role | Notes | |
|---|---|---|---|
| admin@bizplaza.in | Admin@123 | Admin | Full access to all features |
| staff@bizplaza.in | Staff@123 | Staff | Limited access based on permissions |
| Password | Expected Result | |
|---|---|---|
| customer@example.com | Customer@123 | Rejected - customer role not allowed |
| admin@bizplaza.in | wrongpassword | Invalid credentials error |
| nonexistent@email.com | anypassword | Invalid credentials error |
Objective: Verify that an admin user can successfully log in to the admin panel.
admin@bizplaza.inAdmin@123Objective: Verify that a staff user can successfully log in to the admin panel.
staff@bizplaza.inStaff@123Objective: Verify the password visibility toggle works correctly.
TestPassword123Objective: Verify that empty email shows appropriate error.
anypasswordObjective: Verify that invalid email formats are rejected.
notanemailadmin@admin.bizplaza.inObjective: Verify that empty password shows appropriate error.
admin@bizplaza.in, leave password emptyObjective: Verify that passwords less than 6 characters are rejected.
admin@bizplaza.in12345 (5 characters)Objective: Verify proper error handling for invalid credentials.
admin@bizplaza.inWrongPassword123Objective: Verify that customer accounts cannot access admin panel.
customer@example.comObjective: Verify that error messages clear when user starts typing.
| Environment | Admin URL | Notes |
|---|---|---|
| Local | http://localhost:4001 | Default local dev port |
| Development | https://dev-admin.bizplaza.in | Dev environment |
| Staging | https://staging-admin.bizplaza.in | Pre-production testing |