feat: move seed loading to admin profile page, add password change
- 'Load Seed Protocols' button now appears on the admin's own profile page instead of the About page. Can be repeated to re-import seeds. - After loading, the profile refreshes to show updated protocol list. - 'Change Password' button also appears on own profile page for all users (not just admin), opening a modal with current/new/confirm fields. - Password modal added to HTML. - README updated: seed loading instructions point to profile page, mentions 100 protocols, notes repeat seeding is supported.
This commit is contained in:
@@ -73,7 +73,7 @@ protocol-droid/
|
||||
```
|
||||
4. The database schema auto-initializes on first API request (creates `data/protocol_droid.db`)
|
||||
5. Visit the site and register — the **first user to register becomes admin**
|
||||
6. Optionally load seed protocols: Go to the **About** page and click **"Load seed protocols"** (visible to admins only). This loads 6 example protocols into your library in one click. No curl needed.
|
||||
5. Optionally load seed protocols: Go to your **profile page** (click your @username) and click **"Load Seed Protocols"** (visible to admins only). This loads 100 example protocols into your library. Can be repeated to re-import seeds.
|
||||
|
||||
**No default admin credentials exist.** A fresh deployment has an empty database. The first registration creates the admin account. Seed protocols are optional and must be explicitly loaded.
|
||||
|
||||
@@ -122,7 +122,7 @@ cd protocol-droid
|
||||
php -S localhost:8000
|
||||
```
|
||||
|
||||
The SQLite database is created automatically at `data/protocol_droid.db`. The first registration creates the admin account. To load the 6 sample protocols (Round Robin Check-In, Consent Decision-Making, etc.):
|
||||
The SQLite database is created automatically at `data/protocol_droid.db`. The first registration creates the admin account. To load the 100 sample protocols, go to your **profile page** (click your @username) and click **"Load Seed Protocols"** (admins only).
|
||||
|
||||
```bash
|
||||
# After registering as admin:
|
||||
|
||||
Reference in New Issue
Block a user