Repository navigation
Change your password in Settings - #34
Merged
Merged
Conversation
Settings has a new last row, "Change password". Enter or a click opens a dialog with three boxes: your current password, the new one, and the new one again. Tab moves between them, Enter goes on to the next empty one and then changes the password, and Esc cancels. A wrong current password, a confirmation that doesn't match, or a new password under 8 characters is said in the dialog, which stays open. It says "Changing the password…" while it works, then Settings says "Password changed." Your vault is re-encrypted in place with the new password. writui backs it up first and deletes the backup only once the vault has reopened with the new password, passed its integrity checks and still holds exactly what it did. If anything goes wrong, the vault is left (or put back from the backup) as it was, and the old password keeps working. If Touch ID is on, it's set up again for the new password on its own; if that can't be done, Touch ID is turned off and Settings says so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🚀 Deploying Preview to Cloudflare 🚀Preview Deployments by commit
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Settings has a new last row, Change password. Enter or a click opens a dialog with three boxed password fields: current password, new password, confirm new password.
What happens to the vault
writui.db.password-<time>.bak).rekeyre-encrypts every page in one transaction and writes the new salt into the file.Touch ID: if it's on, its key file is made again for the new key (that doesn't need a fingerprint). If that fails, Touch ID is turned off and Settings says so.
Checked
Try it
gh pr checkout 34 && cargo runDebug builds use
.dev-data/(passwordwritui-dev), never your real vault. In Settings (son the list), go to Change password and changewritui-devto anything, then press Ctrl+O and unlock with the new password. Change it back towritui-devwhen you're done.To check Touch ID too: turn it on in Settings, change the password, quit, and start
cargo runagain. It should ask for your fingerprint and unlock.Also in this PR:
0.20.0, README (how to change the password), SPEC, DECISIONS and PLAN.🤖 Generated with Claude Code