mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 01:42:27 +00:00
wallet_rpc_server: fix change_wallet_password RPC
This commit is contained in:
parent
1afc1d0d26
commit
99d45a9578
1 changed files with 1 additions and 2 deletions
|
@ -2822,8 +2822,7 @@ namespace tools
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
m_wallet->rewrite(m_wallet->get_wallet_file(), req.new_password);
|
m_wallet->change_password(m_wallet->get_wallet_file(), req.old_password, req.new_password);
|
||||||
m_wallet->store();
|
|
||||||
LOG_PRINT_L0("Wallet password changed.");
|
LOG_PRINT_L0("Wallet password changed.");
|
||||||
}
|
}
|
||||||
catch (const std::exception& e)
|
catch (const std::exception& e)
|
||||||
|
|
Loading…
Reference in a new issue