wallet2_api: fix generating new wallet in the GUI

It was creating a new wallet without a password first (this should
be fixed), then not changing the password correctly
pull/127/head
moneromooo-monero 6 years ago
parent 1afc1d0d26
commit 0cdd4b074e
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -776,7 +776,7 @@ bool WalletImpl::setPassword(const std::string &password)
{
clearStatus();
try {
m_wallet->rewrite(m_wallet->get_wallet_file(), password);
m_wallet->change_password(m_wallet->get_wallet_file(), m_password, password);
m_password = password;
} catch (const std::exception &e) {
setStatusError(e.what());

Loading…
Cancel
Save