mirror of
https://github.com/monero-project/monero.git
synced 2025-06-21 02:44:10 -04:00
wallet: fix --generate-from-json using wrong password
This commit is contained in:
parent
83d8f03c23
commit
25e5890d37
6 changed files with 20 additions and 7 deletions
|
@ -221,6 +221,10 @@ namespace tools
|
|||
: m_password(std::move(password))
|
||||
{
|
||||
}
|
||||
password_container::password_container(const epee::wipeable_string& password) noexcept
|
||||
: m_password(password)
|
||||
{
|
||||
}
|
||||
|
||||
password_container::~password_container() noexcept
|
||||
{
|
||||
|
|
|
@ -47,6 +47,7 @@ namespace tools
|
|||
|
||||
//! `password` is used as password
|
||||
password_container(std::string&& password) noexcept;
|
||||
password_container(const epee::wipeable_string& password) noexcept;
|
||||
|
||||
//! \return A password from stdin TTY prompt or `std::cin` pipe.
|
||||
static boost::optional<password_container> prompt(bool verify, const char *mesage = "Password", bool hide_input = true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue