Commit graph

12 commits

Author SHA1 Message Date
Chris
aafb1877ae
fix(admin): add CSRF token to admin user management operations (#1065)
Fixes #1064

Admin user operations (create, update, delete, toggle registration) were
failing with "CSRF token missing" error when accessed behind a reverse proxy.
This happened because the frontend was using plain fetch() instead of
fetchWithCsrf() utility which automatically includes the CSRF token header.

Changed all state-changing operations in AdminUsersPage to use fetchWithCsrf:
- createAdminUser (POST /admin/users)
- updateAdminUser (PUT /admin/users/:id)
- deleteAdminUser (DELETE /admin/users/:id)
- toggleRegistration (POST /admin/toggle-registration)
2026-04-24 23:24:46 +03:00
Chris
8e71cadd9e
Fix bug 578 (#648)
* Fix user deletion

* fixup! Fix user deletion
2025-12-04 14:00:51 +02:00
Chris
4a2cce8fde
Scaffold smtp service (#590)
* Scaffold smtp service

* fixup! Scaffold smtp service
2025-11-24 17:58:09 +02:00
Chris
673a6a56ee
Fix static base path (#549) 2025-11-16 22:43:06 +02:00
Chris Veleris
7178f3dccb Add user edit 2025-10-15 16:48:03 +03:00
Chris Veleris
2cd7d9abe4 Add translations 2025-10-15 13:05:57 +03:00
Chris Veleris
5160ab6955 Tweak UI for feature 2025-10-13 11:09:19 +03:00
Chris Veleris
b78cb55caf fixup! Add user name and surname 2025-10-11 13:26:56 +03:00
Chris Veleris
d03cb0c4ae Add user name and surname 2025-10-11 13:26:56 +03:00
Chris Veleris
167868d297 Fix an issue with user data persistance 2025-10-11 13:26:56 +03:00
antanst
b8611d9338 chore(lint): remove unnecessary try/catch and tighten error handling
- Projects: remove superfluous try/catch around toast; keep explicit error path
- AdminUsers/Sidebar/ShareService: keep minimal catch blocks only to ignore non-JSON parse failures, without swallowing errors
- Lint/format pass remains green
2025-09-22 15:20:46 +03:00
antanst
c232d00d9a Admin user management: backend API and frontend UI.
- Add admin-only users API: list/create/delete (prevent self-delete and last-admin deletion).
- Include is_admin in auth responses.
- Frontend: /admin/users page with table, selection, remove, Add User modal.
- Show “Manage users” in user menu for admins and optional sidebar link.
- Add i18n strings for admin UI.
- Enhance create user script to grant admin via optional third arg.
- Minor: set dev bootstrap user as admin in start script.
2025-09-22 15:20:46 +03:00