Repository navigation
Allow changing the administrator password - #710
Conversation
Add a password change form to the Auth dashboard. Verify the current password and conditionally replace its Argon2id hash so concurrent submissions cannot overwrite an earlier change. Keep existing browser sessions and authorized applications working. Exclude passwords and hashes from query and error reporting. Cover the form, login behavior, and concurrent updates in tests, and document the feature in the setup guides and changelog. Fixes fedify-dev#709 Assisted-by: Codex:gpt-6.2-sol Assisted-by: Codex:gpt-6.2-astra Assisted-by: Claude Code:claude-sonnet-5-5
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Previously, changing Hollo's administrator password after setup required updating the stored hash directly in PostgreSQL. A signed-in administrator can now open Auth, enter the current password, and confirm a new one. Editing the current password field clears its previous error.
The server replaces the Argon2id hash only if the stored hash still matches the one it verified. If another request changes the password in the meantime, the form asks the administrator to try again with the current password. The new password applies to subsequent sign-ins. Existing browser sessions and authorized apps stay active.
Sentry skips the password-change request body. The update skips SQL query logging because it binds the old and new password hashes.
Fixes #709.