1
0

fix 2fa wallet creation via qt gui

closes #5334
This commit is contained in:
SomberNight
2019-05-14 15:32:57 +02:00
parent 7aaac2ee30
commit 003e6c3e79
2 changed files with 10 additions and 3 deletions

View File

@@ -560,11 +560,13 @@ class BaseWizard(Logger):
self.terminate()
def create_storage(self, path):
if os.path.exists(path):
raise Exception('file already exists at path')
if not self.pw_args:
return
password, encrypt_storage, storage_enc_version = self.pw_args
storage = WalletStorage(path)
storage.set_keystore_encryption(bool(password)) # and encrypt_keystore)
storage.set_keystore_encryption(bool(password))
if encrypt_storage:
storage.set_password(password, enc_version=storage_enc_version)
for key, value in self.data.items():