git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
9056865
)
wallet.py: use get_seed in update_password
author
ThomasV
<thomasv@gitorious>
Sun, 10 Nov 2013 10:51:56 +0000 (11:51 +0100)
committer
ThomasV
<thomasv@gitorious>
Sun, 10 Nov 2013 10:51:56 +0000 (11:51 +0100)
lib/wallet.py
patch
|
blob
|
history
diff --git
a/lib/wallet.py
b/lib/wallet.py
index
4cb7bd4
..
443a3d6
100644
(file)
--- a/
lib/wallet.py
+++ b/
lib/wallet.py
@@
-1408,8
+1408,7
@@
class Wallet:
def update_password(self, old_password, new_password):
if new_password == '': new_password = None
- # this will throw an exception if unicode cannot be converted
- decoded = pw_decode(self.seed, old_password)
+ decoded = self.get_seed(old_password)
self.seed = pw_encode( decoded, new_password)
self.storage.put('seed', self.seed, True)
self.use_encryption = (new_password != None)