mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-21 09:21:15 -05:00
[PR #1128] [CLOSED] Allow server admins to reset internal user passwords #17485
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fosrl/pangolin/pull/1128
Author: @adrianeastles
Created: 7/25/2025
Status: ❌ Closed
Base:
dev← Head:feature/admin-reset-user-password📝 Commits (4)
d664eb2- Add API endpoint POST /admin/user/{userId}/password for server admins41054cdFixed dark mode issuec588128Aligned password reset time with current standards in other places.87da1ebAdded password reset functionality to API keys📊 Changes
9 files changed (+497 additions, -0 deletions)
View changed files
📝
messages/en-US.json(+9 -0)📝
server/auth/actions.ts(+1 -0)📝
server/routers/external.ts(+5 -0)📝
server/routers/integration.ts(+7 -0)➕
server/routers/user/adminResetUserPassword.ts(+212 -0)📝
server/routers/user/index.ts(+1 -0)📝
src/app/admin/users/[userId]/general/page.tsx(+29 -0)➕
src/components/AdminPasswordReset.tsx(+232 -0)📝
src/components/PermissionsSelectBox.tsx(+1 -0)📄 Description
Community Contribution License Agreement
By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.
Description
This introduces essential administrative capabilities for user account management. Server administrators can now reset passwords for internal users through a new password reset feature in the admin interface. The implementation includes a dedicated API endpoint for secure password reset operations, enhanced backend logic for password generation and validation, and updated frontend components in the admin user management table.
How to test?
Navigate to Admin Interface
Initiate Password Reset
Handle Password Reset
Verify Success
Screenshots
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.