aboutsummaryrefslogtreecommitdiff
path: root/wizard
diff options
context:
space:
mode:
authorrating89us <45968869+rating89us@users.noreply.github.com>2021-11-27 19:06:22 +0100
committerrating89us <45968869+rating89us@users.noreply.github.com>2021-11-27 19:50:09 +0100
commit843536c7a140c45f56d23c9e5e13ec31c95428a2 (patch)
tree763dee2b98a0b5f4174bfd769c528857455f4ea5 /wizard
parentc72729fa5db0d018b0929866fb847ac99e05086f (diff)
downloadmonzero-gui-843536c7a140c45f56d23c9e5e13ec31c95428a2.tar.gz
monzero-gui-843536c7a140c45f56d23c9e5e13ec31c95428a2.tar.xz
monzero-gui-843536c7a140c45f56d23c9e5e13ec31c95428a2.zip
WizardAskPassword: clean password fields when clicking on Back button
Diffstat (limited to 'wizard')
-rw-r--r--wizard/WizardAskPassword.qml1
-rw-r--r--wizard/WizardCreateWallet2.qml3
-rw-r--r--wizard/WizardRestoreWallet2.qml3
3 files changed, 7 insertions, 0 deletions
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: {