1
0

password dialog

This commit is contained in:
thomasv
2012-02-13 14:52:59 +01:00
parent 034f740fd2
commit 30b67779cb
3 changed files with 86 additions and 22 deletions

View File

@@ -441,14 +441,7 @@ def change_password_dialog(wallet, parent, icon):
show_message("passwords do not match")
return
wallet.use_encryption = (new_password != '')
wallet.seed = wallet.pw_encode( seed, new_password)
for k in wallet.imported_keys.keys():
a = wallet.imported_keys[k]
b = wallet.pw_decode(a, password)
c = wallet.pw_encode(b, new_password)
wallet.imported_keys[k] = c
wallet.save()
wallet.update_password(seed, new_password)
if icon:
if wallet.use_encryption: