mirror of
https://github.com/monero-project/monero-gui
synced 2024-11-16 14:55:33 +01:00
wizard: clear password field after wallet creation
This commit is contained in:
parent
bddb9b0050
commit
2566f445b2
@ -104,7 +104,6 @@ ColumnLayout {
|
|||||||
labelFontSize: 14
|
labelFontSize: 14
|
||||||
password: true
|
password: true
|
||||||
labelText: qsTr("Password") + translationManager.emptyString
|
labelText: qsTr("Password") + translationManager.emptyString
|
||||||
text: walletOptionsPassword
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
@ -170,7 +169,6 @@ ColumnLayout {
|
|||||||
labelFontSize: 14
|
labelFontSize: 14
|
||||||
passwordLinked: passwordInput
|
passwordLinked: passwordInput
|
||||||
labelText: qsTr("Password (confirm)") + translationManager.emptyString
|
labelText: qsTr("Password (confirm)") + translationManager.emptyString
|
||||||
text: walletOptionsPassword
|
|
||||||
onTextChanged:{
|
onTextChanged:{
|
||||||
if (passwordInputConfirm.text.length == passwordInput.text.length) {
|
if (passwordInputConfirm.text.length == passwordInput.text.length) {
|
||||||
firstUserInput = false;
|
firstUserInput = false;
|
||||||
|
@ -194,6 +194,8 @@ Rectangle {
|
|||||||
btnNext.enabled: walletInput.verify();
|
btnNext.enabled: walletInput.verify();
|
||||||
btnPrev.text: qsTr("Back to menu") + translationManager.emptyString
|
btnPrev.text: qsTr("Back to menu") + translationManager.emptyString
|
||||||
onPrevClicked: {
|
onPrevClicked: {
|
||||||
|
wizardController.wizardStateView.wizardCreateWallet2View.pwField = "";
|
||||||
|
wizardController.wizardStateView.wizardCreateWallet2View.pwConfirmField = "";
|
||||||
wizardStateView.state = "wizardHome";
|
wizardStateView.state = "wizardHome";
|
||||||
}
|
}
|
||||||
onNextClicked: {
|
onNextClicked: {
|
||||||
|
@ -38,6 +38,8 @@ Rectangle {
|
|||||||
color: "transparent"
|
color: "transparent"
|
||||||
property alias pageHeight: pageRoot.height
|
property alias pageHeight: pageRoot.height
|
||||||
property string viewName: "wizardCreateWallet2"
|
property string viewName: "wizardCreateWallet2"
|
||||||
|
property alias pwField: passwordFields.password
|
||||||
|
property alias pwConfirmField: passwordFields.passwordConfirm
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: pageRoot
|
id: pageRoot
|
||||||
@ -64,9 +66,6 @@ Rectangle {
|
|||||||
progress: 1
|
progress: 1
|
||||||
btnNext.enabled: passwordFields.calcStrengthAndVerify();
|
btnNext.enabled: passwordFields.calcStrengthAndVerify();
|
||||||
onPrevClicked: {
|
onPrevClicked: {
|
||||||
passwordFields.password = "";
|
|
||||||
passwordFields.passwordConfirm = "";
|
|
||||||
|
|
||||||
if(wizardController.walletOptionsIsRecoveringFromDevice){
|
if(wizardController.walletOptionsIsRecoveringFromDevice){
|
||||||
wizardStateView.state = "wizardCreateDevice1";
|
wizardStateView.state = "wizardCreateDevice1";
|
||||||
} else {
|
} else {
|
||||||
|
@ -77,6 +77,8 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
onNextClicked: {
|
onNextClicked: {
|
||||||
|
wizardController.wizardStateView.wizardCreateWallet2View.pwField = "";
|
||||||
|
wizardController.wizardStateView.wizardCreateWallet2View.pwConfirmField = "";
|
||||||
wizardController.writeWallet(function() {
|
wizardController.writeWallet(function() {
|
||||||
wizardController.useMoneroClicked();
|
wizardController.useMoneroClicked();
|
||||||
wizardController.walletOptionsIsRecoveringFromDevice = false;
|
wizardController.walletOptionsIsRecoveringFromDevice = false;
|
||||||
|
@ -296,6 +296,8 @@ Rectangle {
|
|||||||
btnNext.enabled: wizardRestoreWallet1.verify();
|
btnNext.enabled: wizardRestoreWallet1.verify();
|
||||||
btnPrev.text: qsTr("Back to menu") + translationManager.emptyString
|
btnPrev.text: qsTr("Back to menu") + translationManager.emptyString
|
||||||
onPrevClicked: {
|
onPrevClicked: {
|
||||||
|
wizardController.wizardStateView.wizardRestoreWallet2View.pwField = "";
|
||||||
|
wizardController.wizardStateView.wizardRestoreWallet2View.pwConfirmField = "";
|
||||||
wizardStateView.state = "wizardHome";
|
wizardStateView.state = "wizardHome";
|
||||||
}
|
}
|
||||||
onNextClicked: {
|
onNextClicked: {
|
||||||
|
@ -41,6 +41,9 @@ Rectangle {
|
|||||||
property alias pageHeight: pageRoot.height
|
property alias pageHeight: pageRoot.height
|
||||||
property string viewName: "wizardRestoreWallet2"
|
property string viewName: "wizardRestoreWallet2"
|
||||||
property int recoveryMode: 1
|
property int recoveryMode: 1
|
||||||
|
property alias pwField: passwordFields.password
|
||||||
|
property alias pwConfirmField: passwordFields.passwordConfirm
|
||||||
|
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: pageRoot
|
id: pageRoot
|
||||||
@ -67,9 +70,6 @@ Rectangle {
|
|||||||
progress: 1
|
progress: 1
|
||||||
btnNext.enabled: passwordFields.calcStrengthAndVerify();
|
btnNext.enabled: passwordFields.calcStrengthAndVerify();
|
||||||
onPrevClicked: {
|
onPrevClicked: {
|
||||||
passwordFields.password = "";
|
|
||||||
passwordFields.passwordConfirm = "";
|
|
||||||
|
|
||||||
wizardStateView.state = "wizardRestoreWallet1";
|
wizardStateView.state = "wizardRestoreWallet1";
|
||||||
}
|
}
|
||||||
onNextClicked: {
|
onNextClicked: {
|
||||||
|
@ -77,6 +77,8 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
onNextClicked: {
|
onNextClicked: {
|
||||||
|
wizardController.wizardStateView.wizardRestoreWallet2View.pwField = "";
|
||||||
|
wizardController.wizardStateView.wizardRestoreWallet2View.pwConfirmField = "";
|
||||||
wizardController.recoveryWallet();
|
wizardController.recoveryWallet();
|
||||||
wizardController.writeWallet(function() {
|
wizardController.writeWallet(function() {
|
||||||
wizardController.useMoneroClicked();
|
wizardController.useMoneroClicked();
|
||||||
|
Loading…
Reference in New Issue
Block a user