aboutsummaryrefslogtreecommitdiff
path: root/wizard
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2022-01-01 12:49:38 -0500
committerluigi1111 <luigi1111w@gmail.com>2022-01-01 12:49:38 -0500
commitd0950499da870f6bfa6c6124e40e44a6e27ac804 (patch)
tree400beb7d6d1e2b98b9306513a31870bd9ccee898 /wizard
parent56df20ba278341575998d133144c7df37c394747 (diff)
parent2566f445b2f9e9161ad996f6d18a2917cf27a6c9 (diff)
downloadmonzero-gui-d0950499da870f6bfa6c6124e40e44a6e27ac804.tar.gz
monzero-gui-d0950499da870f6bfa6c6124e40e44a6e27ac804.tar.xz
monzero-gui-d0950499da870f6bfa6c6124e40e44a6e27ac804.zip
Merge pull request #3795
2566f44 wizard: clear password field after wallet creation (selsta)
Diffstat (limited to 'wizard')
-rw-r--r--wizard/WizardAskPassword.qml2
-rw-r--r--wizard/WizardCreateWallet1.qml2
-rw-r--r--wizard/WizardCreateWallet2.qml5
-rw-r--r--wizard/WizardCreateWallet4.qml2
-rw-r--r--wizard/WizardRestoreWallet1.qml2
-rw-r--r--wizard/WizardRestoreWallet2.qml6
-rw-r--r--wizard/WizardRestoreWallet4.qml2
7 files changed, 13 insertions, 8 deletions
diff --git a/wizard/WizardAskPassword.qml b/wizard/WizardAskPassword.qml
index 57a7876b..b0efd83d 100644
--- a/wizard/WizardAskPassword.qml
+++ b/wizard/WizardAskPassword.qml
@@ -104,7 +104,6 @@ ColumnLayout {
labelFontSize: 14
password: true
labelText: qsTr("Password") + translationManager.emptyString
- text: walletOptionsPassword
}
ColumnLayout {
@@ -170,7 +169,6 @@ ColumnLayout {
labelFontSize: 14
passwordLinked: passwordInput
labelText: qsTr("Password (confirm)") + translationManager.emptyString
- text: walletOptionsPassword
onTextChanged:{
if (passwordInputConfirm.text.length == passwordInput.text.length) {
firstUserInput = false;
diff --git a/wizard/WizardCreateWallet1.qml b/wizard/WizardCreateWallet1.qml
index c1ecf026..088df200 100644
--- a/wizard/WizardCreateWallet1.qml
+++ b/wizard/WizardCreateWallet1.qml
@@ -194,6 +194,8 @@ Rectangle {
btnNext.enabled: walletInput.verify();
btnPrev.text: qsTr("Back to menu") + translationManager.emptyString
onPrevClicked: {
+ wizardController.wizardStateView.wizardCreateWallet2View.pwField = "";
+ wizardController.wizardStateView.wizardCreateWallet2View.pwConfirmField = "";
wizardStateView.state = "wizardHome";
}
onNextClicked: {
diff --git a/wizard/WizardCreateWallet2.qml b/wizard/WizardCreateWallet2.qml
index 74fb1df0..72a8f71a 100644
--- a/wizard/WizardCreateWallet2.qml
+++ b/wizard/WizardCreateWallet2.qml
@@ -38,6 +38,8 @@ Rectangle {
color: "transparent"
property alias pageHeight: pageRoot.height
property string viewName: "wizardCreateWallet2"
+ property alias pwField: passwordFields.password
+ property alias pwConfirmField: passwordFields.passwordConfirm
ColumnLayout {
id: pageRoot
@@ -64,9 +66,6 @@ Rectangle {
progress: 1
btnNext.enabled: passwordFields.calcStrengthAndVerify();
onPrevClicked: {
- passwordFields.password = "";
- passwordFields.passwordConfirm = "";
-
if(wizardController.walletOptionsIsRecoveringFromDevice){
wizardStateView.state = "wizardCreateDevice1";
} else {
diff --git a/wizard/WizardCreateWallet4.qml b/wizard/WizardCreateWallet4.qml
index df05de85..33c1e926 100644
--- a/wizard/WizardCreateWallet4.qml
+++ b/wizard/WizardCreateWallet4.qml
@@ -77,6 +77,8 @@ Rectangle {
}
}
onNextClicked: {
+ wizardController.wizardStateView.wizardCreateWallet2View.pwField = "";
+ wizardController.wizardStateView.wizardCreateWallet2View.pwConfirmField = "";
wizardController.writeWallet(function() {
wizardController.useMoneroClicked();
wizardController.walletOptionsIsRecoveringFromDevice = false;
diff --git a/wizard/WizardRestoreWallet1.qml b/wizard/WizardRestoreWallet1.qml
index 075a4d5a..9ac92500 100644
--- a/wizard/WizardRestoreWallet1.qml
+++ b/wizard/WizardRestoreWallet1.qml
@@ -296,6 +296,8 @@ Rectangle {
btnNext.enabled: wizardRestoreWallet1.verify();
btnPrev.text: qsTr("Back to menu") + translationManager.emptyString
onPrevClicked: {
+ wizardController.wizardStateView.wizardRestoreWallet2View.pwField = "";
+ wizardController.wizardStateView.wizardRestoreWallet2View.pwConfirmField = "";
wizardStateView.state = "wizardHome";
}
onNextClicked: {
diff --git a/wizard/WizardRestoreWallet2.qml b/wizard/WizardRestoreWallet2.qml
index 8251d6b7..0bb9a0e6 100644
--- a/wizard/WizardRestoreWallet2.qml
+++ b/wizard/WizardRestoreWallet2.qml
@@ -41,6 +41,9 @@ Rectangle {
property alias pageHeight: pageRoot.height
property string viewName: "wizardRestoreWallet2"
property int recoveryMode: 1
+ property alias pwField: passwordFields.password
+ property alias pwConfirmField: passwordFields.passwordConfirm
+
ColumnLayout {
id: pageRoot
@@ -67,9 +70,6 @@ Rectangle {
progress: 1
btnNext.enabled: passwordFields.calcStrengthAndVerify();
onPrevClicked: {
- passwordFields.password = "";
- passwordFields.passwordConfirm = "";
-
wizardStateView.state = "wizardRestoreWallet1";
}
onNextClicked: {
diff --git a/wizard/WizardRestoreWallet4.qml b/wizard/WizardRestoreWallet4.qml
index 1f22314a..091c143f 100644
--- a/wizard/WizardRestoreWallet4.qml
+++ b/wizard/WizardRestoreWallet4.qml
@@ -77,6 +77,8 @@ Rectangle {
}
}
onNextClicked: {
+ wizardController.wizardStateView.wizardRestoreWallet2View.pwField = "";
+ wizardController.wizardStateView.wizardRestoreWallet2View.pwConfirmField = "";
wizardController.recoveryWallet();
wizardController.writeWallet(function() {
wizardController.useMoneroClicked();