feat: an "Allow weak passwords" setting lets a new wallet have a short password (closes #674)
check / check (push) Canceled after 0s
e2e / e2e-chrome (push) Canceled after 0s
e2e / e2e-firefox (push) Canceled after 0s

Settings gains a Passwords section with an "Allow weak passwords" checkbox. It
is off in a new profile, and only a stored true turns it on. While it is off,
AddWallet refuses a password shorter than 12 characters, as before. While it is
on, AddWallet accepts any password that is not empty. Key derivation is
unchanged.

The README describes the setting under Settings and AddWallet. Its Key
Decisions section now states the Argon2id parameters and why they are light.
The user guide lists the setting under Settings.

Model: opus-5-5
This commit is contained in:
2026-10-26 20:49:27 +00:00
parent bf8aa9f5dd
commit be3e82ded2
8 changed files with 149 additions and 12 deletions
+9 -2
View File
@@ -629,8 +629,15 @@ const CONTRACT = [
// the falsy answer is also the DEFAULT_STATE default.
falsy: [0],
})),
// Each lets a request reach another service, so anything but true is off.
...["useBlockscout", "checkRecipientsOnEtherscan"].map((field) => ({
// Anything but true is off for these three settings:
// - useBlockscout and checkRecipientsOnEtherscan let a request reach
// another service.
// - allowWeakPasswords lets AddWallet accept a short password.
...[
"useBlockscout",
"checkRecipientsOnEtherscan",
"allowWeakPasswords",
].map((field) => ({
field,
kind: KIND.SCALAR,
hostile: [42, "notabool", { a: 1 }],