Allow server admins to reset internal user passwords #1182

Closed
opened 2026-04-05 18:27:14 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @adrianeastles on 7/25/2025

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?

  1. Navigate to Admin Interface

    • Go to AdminUsers
    • Locate an internal user in the users table
  2. Initiate Password Reset

    • Click on the user row to open user details
    • Click the "Reset Password" button
    • Confirm the action in the dialog that appears
  3. Handle Password Reset

    • If SMTP is enabled: Check the user's email for the password reset link
    • If SMTP is disabled: The password reset link will be displayed on screen for you to copy
    • Use the provided link to access the password reset page
    • Enter a new password and confirm it
  4. Verify Success

    • Confirm the password reset was successful
    • Test logging in with the new password
    • Verify the old password no longer works

Screenshots

Screenshot 2025-07-25 at 8 54 05 pm Screenshot 2025-07-25 at 8 54 10 pm Screenshot 2025-07-25 at 8 54 15 pm
*Originally created by @adrianeastles on 7/25/2025* ## 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? 1. **Navigate to Admin Interface** - Go to **Admin** → **Users** - Locate an internal user in the users table 2. **Initiate Password Reset** - Click on the user row to open user details - Click the **"Reset Password"** button - Confirm the action in the dialog that appears 3. **Handle Password Reset** - **If SMTP is enabled**: Check the user's email for the password reset link - **If SMTP is disabled**: The password reset link will be displayed on screen for you to copy - Use the provided link to access the password reset page - Enter a new password and confirm it 4. **Verify Success** - Confirm the password reset was successful - Test logging in with the new password - Verify the old password no longer works ## Screenshots <img width="1340" height="721" alt="Screenshot 2025-07-25 at 8 54 05 pm" src="https://github.com/user-attachments/assets/3e7ec038-79ab-4b7c-baf5-616e12c16dc2" /> <img width="647" height="337" alt="Screenshot 2025-07-25 at 8 54 10 pm" src="https://github.com/user-attachments/assets/4160b08f-11c1-4e57-90b8-b68a3a3f78b3" /> <img width="627" height="328" alt="Screenshot 2025-07-25 at 8 54 15 pm" src="https://github.com/user-attachments/assets/dd987b2c-1f82-4e31-95f6-8a8b12540954" />
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#1182