You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
---
Adds wallet password complexity feedback. Allows empty passwords. Adds a warning indicating that password changing functionality is [not yet implemented](#5003). Adds tests.
Closes [issue 5101](#5101).
Motivation and Context
---
The only check on a wallet password is that it not be empty. This introduces two issues:
- The user has no feedback on the practical strength of their password.
- The user may specifically wish not to set a password for fail-available backups.
This PR uses the [zxcvbn](https://crates.io/crates/zxcvbn) password complexity library to score a password and provide actionable feedback to the user. When the user enters a new password or changes their password, feedback is displayed if applicable. This is informational; the user is free to ignore the feedback if they wish.
Further, the user is now allowed to set an empty password, which may be desired for backups that must fail available. A warning is displayed if this happens.
Finally, a warning message is displayed during the password changing process to indicate that this functionality is incomplete.
How Has This Been Tested?
---
Existing CI passes. New tests pass. Tested manually for new wallets.
0 commit comments