Skip to content

webui: report a passphrase that wasn't saved - #15

Draft
ash-iir wants to merge 1 commit into
mainfrom
fix-passphrase-save
Draft

ash-iir wants to merge 1 commit into
mainfrom
fix-passphrase-save

Conversation

@ash-iir

@ash-iir ash-iir commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Setting or clearing the global or per-app passphrase ignored the helper's result. A failed save still flipped the label to "set" (global) or showed nothing (per-app), so the user could believe later backups were encrypted when they weren't.

All four calls (pass-set-global set/clear, pass-set-app set/clear) now show errMsg(r) when ok is false and only update the state label on success.

Testing

  • node --check on scripts.js.
  • Not tested on a device.

pass-set-global and pass-set-app ignored the helper result, so a failed
save still showed "set" (or nothing at all) and the user believed future
backups were encrypted. Show errMsg(r) and only update the state on ok.

Signed-off-by: ash-iir <254348575+ash-iir@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant