Skip to content

Commit 2cfc43c

Browse files
committed
Updated example credentials to be easier to type
1 parent c57b14d commit 2cfc43c

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ A full-stack web application demonstrating modern software engineering practices
1010

1111
| Role | User ID | Password | Access Level | Protection |
1212
|------|---------|----------|--------------|-----------|
13-
| **Admin** | `admin_1` | `admin` | Full system access, user management | 🛡️ Protected |
14-
| **Contributor** | `cont_1` | `cont` | Upload, download, delete own files | 🛡️ Protected |
15-
| **Viewer** | `view_1` | `view` | View and download files only | 🛡️ Protected |
13+
| **Admin** | `admin` | `admin` | Full system access, user management | 🛡️ Protected |
14+
| **Contributor** | `cont` | `cont` | Upload, download, delete own files | 🛡️ Protected |
15+
| **Viewer** | `view` | `view` | View and download files only | 🛡️ Protected |
1616

1717
**🛡️ Protected System Accounts:**
1818
- These accounts are **indestructible** and cannot be deleted through the admin interface
@@ -163,7 +163,7 @@ This section provides recruiters with a comprehensive testing guide to evaluate
163163
#### **🔐 Role-Based Access Testing**
164164

165165
**1. Test Admin Functionality:**
166-
- Login with `admin_1` / `admin`
166+
- Login with `admin` / `admin`
167167
- Navigate to "Admin Panel" in the header
168168
- Test user management features:
169169
- View all users and their roles
@@ -172,13 +172,13 @@ This section provides recruiters with a comprehensive testing guide to evaluate
172172
- Test real-time statistics updates
173173
- **Test Protected System Accounts:**
174174
- Look for 🛡️ "Protected" badges on system accounts
175-
- Try to delete `admin_1`, `cont_1`, or `view_1` accounts
175+
- Try to delete `admin`, `cont`, or `view` accounts
176176
- Verify delete buttons are disabled for protected accounts
177177
- Confirm error message when attempting to delete protected accounts
178178
- Verify admin can access all files and delete any file
179179

180180
**2. Test Contributor Functionality:**
181-
- Login with `cont_1` / `cont`
181+
- Login with `cont` / `cont`
182182
- Test file operations:
183183
- Upload files (various formats and sizes)
184184
- Download files
@@ -188,7 +188,7 @@ This section provides recruiters with a comprehensive testing guide to evaluate
188188
- Test that you cannot delete other users' files
189189

190190
**3. Test Viewer Functionality:**
191-
- Login with `view_1` / `view`
191+
- Login with `view` / `view`
192192
- Test read-only access:
193193
- View all files
194194
- Download files

server.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ async function createProtectedSystemAccounts() {
138138
{
139139
firstname: 'System',
140140
lastname: 'Admin',
141-
userid: 'admin_1',
141+
userid: 'admin',
142142
143143
pass: await bcrypt.hash('admin', 10),
144144
role: 'admin',
@@ -148,7 +148,7 @@ async function createProtectedSystemAccounts() {
148148
{
149149
firstname: 'System',
150150
lastname: 'Contributor',
151-
userid: 'cont_1',
151+
userid: 'cont',
152152
153153
pass: await bcrypt.hash('cont', 10),
154154
role: 'contributor',
@@ -158,7 +158,7 @@ async function createProtectedSystemAccounts() {
158158
{
159159
firstname: 'System',
160160
lastname: 'Viewer',
161-
userid: 'view_1',
161+
userid: 'view',
162162
163163
pass: await bcrypt.hash('view', 10),
164164
role: 'viewer',

0 commit comments

Comments
 (0)