wallet.py: use get_seed in update_password
authorThomasV <thomasv@gitorious>
Sun, 10 Nov 2013 10:51:56 +0000 (11:51 +0100)
committerThomasV <thomasv@gitorious>
Sun, 10 Nov 2013 10:51:56 +0000 (11:51 +0100)
lib/wallet.py

index 4cb7bd4..443a3d6 100644 (file)
@@ -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)