Skip to content

Commit

Permalink
Merge pull request mbg033#46
Browse files Browse the repository at this point in the history
b8c07de wizard: store password in appwindow session (Jacob Brydolf)
e5b9a1b settings page: strict password check (Jacob Brydolf)
010cce4 settings page: Empty password field on seed view (Jacob Brydolf)
  • Loading branch information
fluffypony committed Oct 11, 2016
2 parents 6bbad6c + b8c07de commit d9b3f4a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/PasswordDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import QtQuick.Controls.Styles 1.4

Dialog {
id: root
readonly property alias password: passwordInput.text
property alias password: passwordInput.text
standardButtons: StandardButton.Ok + StandardButton.Cancel
ColumnLayout {
id: column
Expand Down
4 changes: 2 additions & 2 deletions pages/Settings.qml
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ Rectangle {
id: settingsPasswordDialog
standardButtons: StandardButton.Ok + StandardButton.Cancel
onAccepted: {
if(appWindow.password == settingsPasswordDialog.password){
if(appWindow.password === settingsPasswordDialog.password){
memoTextInput.text = currentWallet.seed
showSeedButton.visible = false
}

settingsPasswordDialog.password = ""
}
onRejected: {

Expand Down
3 changes: 3 additions & 0 deletions wizard/WizardMain.qml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ Rectangle {
// protecting wallet with password
settings.wallet.setPassword(settings.wallet_password);

// Store password in session to be able to use password protected functions (e.g show seed)
appWindow.password = settings.wallet_password

// saving wallet_filename;
settings['wallet_filename'] = new_wallet_filename;

Expand Down

0 comments on commit d9b3f4a

Please sign in to comment.