docs: update admin user creation instructions
This commit is contained in:
@@ -180,6 +180,35 @@ npm run test
|
||||
npm run test:acceptance
|
||||
```
|
||||
|
||||
## Admin User Creation
|
||||
|
||||
To create an admin user, use the provided scripts:
|
||||
|
||||
**Option 1: Using Better Auth API (Recommended)**
|
||||
```bash
|
||||
node scripts/create-admin-via-api.js
|
||||
```
|
||||
This creates the admin user `david@dhg.lol` with password `adminadmin` using Better Auth's internal API.
|
||||
|
||||
**Option 2: Direct Database Creation**
|
||||
```bash
|
||||
node scripts/create-admin-better-auth.js
|
||||
```
|
||||
This creates the admin user `david@dhg.lol` with password `admin` directly in the database.
|
||||
|
||||
**List All Users:**
|
||||
```bash
|
||||
node scripts/list-users.js
|
||||
```
|
||||
|
||||
**Update Admin Password:**
|
||||
```bash
|
||||
node scripts/update-admin-password.js
|
||||
```
|
||||
This updates the admin password to `adminadmin`.
|
||||
|
||||
**Note:** All scripts currently create the user `david@dhg.lol`. If you need to create a different admin user, you can modify the email in the script or use Better Auth's CLI.
|
||||
|
||||
## User Stories
|
||||
|
||||
User stories are organized into epics in `docs/USER_STORIES.md`:
|
||||
|
||||
Reference in New Issue
Block a user