From 3ae2329570332ecf1685c496f9da38202c474791 Mon Sep 17 00:00:00 2001 From: Hein Dauven Date: Mon, 23 Dec 2024 15:05:20 +0100 Subject: [PATCH] web-wallet: Change password setting as enabled by default --- web-wallet/CHANGELOG.md | 2 + .../(welcome)/setup/PasswordSetup.svelte | 10 +-- .../(welcome)/setup/create/+page.svelte | 2 +- .../__tests__/__snapshots__/page.spec.js.snap | 90 +++++++++---------- .../setup/create/__tests__/page.spec.js | 9 +- .../(welcome)/setup/restore/+page.svelte | 2 +- .../setup/restore/__tests__/page.spec.js | 4 +- .../routes/components-showcase/Banners.svelte | 8 +- 8 files changed, 65 insertions(+), 62 deletions(-) diff --git a/web-wallet/CHANGELOG.md b/web-wallet/CHANGELOG.md index 0cb74e7b88..536be25a46 100644 --- a/web-wallet/CHANGELOG.md +++ b/web-wallet/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Update Transactions list design [#1922] +- Change password setting as enabled by default [#3287] ### Removed @@ -501,6 +502,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [#3265]: https://github.com/dusk-network/rusk/issues/3265 [#3267]: https://github.com/dusk-network/rusk/issues/3267 [#3270]: https://github.com/dusk-network/rusk/issues/3270 +[#3287]: https://github.com/dusk-network/rusk/issues/3287 diff --git a/web-wallet/src/routes/(welcome)/setup/PasswordSetup.svelte b/web-wallet/src/routes/(welcome)/setup/PasswordSetup.svelte index 26160fad4d..0a2b0d1a76 100644 --- a/web-wallet/src/routes/(welcome)/setup/PasswordSetup.svelte +++ b/web-wallet/src/routes/(welcome)/setup/PasswordSetup.svelte @@ -11,7 +11,7 @@ export let isValid = false; /** @type {boolean} */ - export let isToggled = false; + export let isToggled = true; /** @type {string} */ let confirmPassword = ""; @@ -59,13 +59,13 @@

- Doing so allows you the convenience of accessing your wallet using a - password, but it weakens the overall security. Not using a password requires - you to input the full mnemonic to open your wallet. + Without a password, you will need to input your full mnemonic each time to + access your wallet. This could expose your mnemonic to potential threats. + Setting a password is highly recommended for better wallet security.

diff --git a/web-wallet/src/routes/(welcome)/setup/create/+page.svelte b/web-wallet/src/routes/(welcome)/setup/create/+page.svelte index 7884a0d996..903e82d364 100644 --- a/web-wallet/src/routes/(welcome)/setup/create/+page.svelte +++ b/web-wallet/src/routes/(welcome)/setup/create/+page.svelte @@ -33,7 +33,7 @@ let isValidPassword = false; /** @type {boolean} */ - let showPasswordSetup = false; + let showPasswordSetup = true; /** @type {boolean} */ let agreementAccepted = false; diff --git a/web-wallet/src/routes/(welcome)/setup/create/__tests__/__snapshots__/page.spec.js.snap b/web-wallet/src/routes/(welcome)/setup/create/__tests__/__snapshots__/page.spec.js.snap index 742791db0a..96a72e77c4 100644 --- a/web-wallet/src/routes/(welcome)/setup/create/__tests__/__snapshots__/page.spec.js.snap +++ b/web-wallet/src/routes/(welcome)/setup/create/__tests__/__snapshots__/page.spec.js.snap @@ -2020,7 +2020,7 @@ exports[`Create > ensures the Password step renders as expected 1`] = ` class="dusk-card__header-controls-wrapper" >
ensures the Password step renders as expected 1`] = `
+
+

+ Please store your password safely. +

+ + + + +
+ + + + + Password must be at least 8 characters + +
+ +
@@ -2063,13 +2097,13 @@ exports[`Create > ensures the Password step renders as expected 1`] = `

- Doing so allows you the convenience of accessing your wallet using a - password, but it weakens the overall security. Not using a password requires - you to input the full mnemonic to open your wallet. + Without a password, you will need to input your full mnemonic each time to + access your wallet. This could expose your mnemonic to potential threats. + Setting a password is highly recommended for better wallet security.

@@ -2103,6 +2137,7 @@ exports[`Create > ensures the Password step renders as expected 1`] = `