mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-03 05:17:25 -04:00
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 {
|
||||
id: root
|
||||
readonly property alias password: passwordInput.text
|
||||
property alias password: passwordInput.text
|
||||
standardButtons: StandardButton.Ok + StandardButton.Cancel
|
||||
ColumnLayout {
|
||||
id: column
|
||||
|
||||
@@ -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: {
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user