username change admin center

This commit is contained in:
k
2026-09-22 08:39:44 +02:00
parent e9695c0239
commit c9e53193b9
9 changed files with 80 additions and 12 deletions
+4
View File
@@ -74,6 +74,10 @@ connectivity tester: `GET /api/admin/mail`, `POST /api/admin/mail/verify`,
- `reports_enabled` (default on): admin kill-switch for message reports —
the chat flag button turns grey with a "Report disabled" tooltip and
`POST /api/reports` answers 403. Surfaced to clients via `GET /api/tools`.
- `username_change_enabled` (default on): lets users rename themselves
(`PATCH /api/me` `username`); off answers 403 and locks the Settings field.
Admins bypass it (`PATCH /api/admin/users/:id` still works). Surfaced to
clients via `GET /api/tools`.
- Flags live in the `settings` SQLite table, edited via
`GET/PATCH /api/admin/settings` (admin Bearer only).