From 843536c7a140c45f56d23c9e5e13ec31c95428a2 Mon Sep 17 00:00:00 2001 From: rating89us <45968869+rating89us@users.noreply.github.com> Date: Sat, 27 Nov 2021 19:06:22 +0100 Subject: [PATCH] WizardAskPassword: clean password fields when clicking on Back button --- wizard/WizardAskPassword.qml | 1 + wizard/WizardCreateWallet2.qml | 3 +++ wizard/WizardRestoreWallet2.qml | 3 +++ 3 files changed, 7 insertions(+) diff --git a/wizard/WizardAskPassword.qml b/wizard/WizardAskPassword.qml index b14aee4d..57a7876b 100644 --- a/wizard/WizardAskPassword.qml +++ b/wizard/WizardAskPassword.qml @@ -38,6 +38,7 @@ ColumnLayout { id: root Layout.fillWidth: true property alias password: passwordInput.text + property alias passwordConfirm: passwordInputConfirm.text property int passwordFill: 0 property string passwordStrengthText: qsTr("Strength: ") + translationManager.emptyString diff --git a/wizard/WizardCreateWallet2.qml b/wizard/WizardCreateWallet2.qml index c2e6736b..74fb1df0 100644 --- a/wizard/WizardCreateWallet2.qml +++ b/wizard/WizardCreateWallet2.qml @@ -64,6 +64,9 @@ Rectangle { progress: 1 btnNext.enabled: passwordFields.calcStrengthAndVerify(); onPrevClicked: { + passwordFields.password = ""; + passwordFields.passwordConfirm = ""; + if(wizardController.walletOptionsIsRecoveringFromDevice){ wizardStateView.state = "wizardCreateDevice1"; } else { diff --git a/wizard/WizardRestoreWallet2.qml b/wizard/WizardRestoreWallet2.qml index 78670df3..8251d6b7 100644 --- a/wizard/WizardRestoreWallet2.qml +++ b/wizard/WizardRestoreWallet2.qml @@ -67,6 +67,9 @@ Rectangle { progress: 1 btnNext.enabled: passwordFields.calcStrengthAndVerify(); onPrevClicked: { + passwordFields.password = ""; + passwordFields.passwordConfirm = ""; + wizardStateView.state = "wizardRestoreWallet1"; } onNextClicked: {