1
0

fix bug with undetected incorrect password that can damage wallet

This commit is contained in:
ThomasV
2013-01-06 09:41:06 +01:00
parent 75247de92f
commit 04322b7cc9
5 changed files with 29 additions and 27 deletions

View File

@@ -1170,10 +1170,9 @@ class ElectrumWindow(QMainWindow):
password = None
try:
seed = wallet.pw_decode(wallet.seed, password)
seed = wallet.decode_seed(password)
except:
QMessageBox.warning(parent, _('Error'),
_('Incorrect Password'), _('OK'))
QMessageBox.warning(parent, _('Error'), _('Incorrect Password'), _('OK'))
return
dialog = QDialog(None)
@@ -1454,7 +1453,7 @@ class ElectrumWindow(QMainWindow):
new_password2 = unicode(conf_pw.text())
try:
seed = wallet.pw_decode( wallet.seed, password)
seed = wallet.decode_seed(password)
except:
QMessageBox.warning(parent, _('Error'), _('Incorrect Password'), _('OK'))
return