alby-hub/api
Roland 3b3c37dd0c
fix: remove legacy acceptance of empty unlock password check (#2534)
* fix: remove legacy acceptance of empty unlock password check

CheckUnlockPassword previously treated a missing or empty
UnlockPasswordCheck value as a match — a legacy compatibility path from
before the canary was always written. It now requires the stored value
to be present and to equal the expected string.

StartApp checks for the canary up front and, if it is missing, stops
with a message asking the user to restore from a backup rather than
continuing. A new IsUnlockPasswordCheckSet helper reports whether the
value is present.

keys.Init now returns the error from reading NostrSecretKey instead of
ignoring it, so a read failure aborts instead of generating and saving a
new key.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* chore: add operation context to unlock password check errors

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-12 14:48:06 +07:00
..
api.go fix: validate LND and CLN credential files during setup (#2528) 2026-08-11 15:05:56 +07:00
api_test.go feat: proposal: custom node commands (#1007) 2025-01-30 18:20:17 +07:00
apps_test.go fix: validate return_to redirect URLs (#2532) 2026-08-11 14:57:51 +07:00
backup.go fix: prevent backup restore from writing outside the restore directory (#2529) 2026-08-10 23:42:45 +07:00
backup_test.go fix: remove legacy acceptance of empty unlock password check (#2534) 2026-08-12 14:48:06 +07:00
esplora.go Adding checks for ok status code in responses (#2178) 2026-03-31 23:21:26 +05:30
lsp.go chore: update to use sat/msat suffixes everywhere (#2271) 2026-05-01 15:41:56 +05:30
models.go fix: keep showing migration success page after creating migration file (#2527) 2026-08-10 15:37:26 +07:00
rebalance.go chore: bump rebalance fees to ensure payment succeeds (#2470) 2026-07-29 14:31:18 +07:00
setup_test.go fix: validate LND and CLN credential files during setup (#2528) 2026-08-11 15:05:56 +07:00
transactions.go feat: filter transactions (#2464) 2026-08-07 10:52:14 +07:00
transactions_test.go feat: filter transactions (#2464) 2026-08-07 10:52:14 +07:00