feat(profiles): implement management password reset functionality for admins
Deploy Development / deploy (push) Successful in 34s
Test Suite / pytest-backend (push) Successful in 24s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 7s
Test Suite / playwright-tests (push) Successful in 23s

- Added a new endpoint for superadmins and platform admins to reset passwords for other profiles.
- Introduced a management password reset feature in the admin user management page, allowing for secure password updates.
- Enhanced user interface to support password reset actions, including validation and feedback for successful updates.
- Updated API utility functions to handle the new password reset request.
This commit is contained in:
Lars committed 2026-05-09 10:15:16 +02:00
1 parent c46f5f99be
commit f54372d7b5
6 files changed
+255 -28

No files matched your search

+9
View File
@@ -139,6 +139,14 @@ export async function updateProfile(profileId, data) {
})
}
/** Neues Login-Passwort für anderes Profil (Super-/Portal- oder Vereinsadmin). */
export async function managementPasswordReset(profileId, newPassword) {
return request(`/api/profiles/${profileId}/management-password-reset`, {
method: 'POST',
body: JSON.stringify({ new_password: newPassword }),
})
}
export async function changePassword(newPassword) {
return request('/api/auth/pin', {
method: 'PUT',
@@ -1308,6 +1316,7 @@ export const api = {
listProfiles,
listAdminUsers,
updateProfile,
managementPasswordReset,
changePassword,
verifyEmail,
resendVerification,