mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:42:38 +00:00
Wallet password prompt: after "show password" is used once, every later opening starts in clear text #1133
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml#1133
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A wallet password prompt whose eye icon has been used once stays unmasked: at every later opening the passphrase is drawn in clear text as it is typed, until the page that owns the prompt is left or the app is restarted. The Update password page keeps its reveal the same way across a tab change.
To reproduce:
abc.The field shows
abc, with the crossed-eye icon, before the eye is touched.The Send review prompt did the same. On Update password, after Show password on the current-password field and a visit to Activity, the same page comes back with its fields emptied and still unmasked:
xyztyped is drawn in clear. It is masked again after Back.The masking is one property of the prompt's field, and a tap on the icon overwrites it:
github.com/bitcoin-core/gui-qml@2bd5a61e83/qml/controls/CoreTextField.qml (L43-L47)The prompt wipes only the text when it opens, hides and closes, and nothing sets the mode back:
github.com/bitcoin-core/gui-qml@2bd5a61e83/qml/components/WalletPassphrasePopup.qml (L76-L95)Each of the app's six prompts is one object that lives as long as its page, which for the Send review and Receive prompts is as long as the wallet stays open, by the source. The icon shows the state and one click masks the field again. Bitcoin-Qt, by its source, builds a new dialog for every prompt with "Show passphrase" off.
Setting the mode back where the text is already wiped would do it. Is keeping the reveal on Update password across a tab change intended? #1052 at
e89a2bcd4624and #1060 at733018ca9eabmove the prompt to the field that page uses and, by their diffs, still clear only the text.Reproduced on
qt6at2bd5a61e8304, macOS arm64 / Qt 6.9.0, isolated regtest, offscreen and native; the same offscreen ateed1f426fcb6. Limits: