forked from Public/monero-gui
Merge pull request #46
b8c07dewizard: store password in appwindow session (Jacob Brydolf)e5b9a1bsettings page: strict password check (Jacob Brydolf)010cce4settings page: Empty password field on seed view (Jacob Brydolf)
This commit is contained in:
@@ -36,7 +36,7 @@ import QtQuick.Controls.Styles 1.4
|
|||||||
|
|
||||||
Dialog {
|
Dialog {
|
||||||
id: root
|
id: root
|
||||||
readonly property alias password: passwordInput.text
|
property alias password: passwordInput.text
|
||||||
standardButtons: StandardButton.Ok + StandardButton.Cancel
|
standardButtons: StandardButton.Ok + StandardButton.Cancel
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: column
|
id: column
|
||||||
|
|||||||
@@ -72,11 +72,11 @@ Rectangle {
|
|||||||
id: settingsPasswordDialog
|
id: settingsPasswordDialog
|
||||||
standardButtons: StandardButton.Ok + StandardButton.Cancel
|
standardButtons: StandardButton.Ok + StandardButton.Cancel
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
if(appWindow.password == settingsPasswordDialog.password){
|
if(appWindow.password === settingsPasswordDialog.password){
|
||||||
memoTextInput.text = currentWallet.seed
|
memoTextInput.text = currentWallet.seed
|
||||||
showSeedButton.visible = false
|
showSeedButton.visible = false
|
||||||
}
|
}
|
||||||
|
settingsPasswordDialog.password = ""
|
||||||
}
|
}
|
||||||
onRejected: {
|
onRejected: {
|
||||||
|
|
||||||
|
|||||||
@@ -124,6 +124,9 @@ Rectangle {
|
|||||||
// protecting wallet with password
|
// protecting wallet with password
|
||||||
settings.wallet.setPassword(settings.wallet_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;
|
// saving wallet_filename;
|
||||||
settings['wallet_filename'] = new_wallet_filename;
|
settings['wallet_filename'] = new_wallet_filename;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user