mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-24 19:45:55 +00:00
Merge pull request #46
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)
This commit is contained in:
commit
d9b3f4a4fd
3 changed files with 6 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue