mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 18:47:36 -07:00
Merge pull request #6014
93e7426
wallet2: error out when we need a daemon password but have no prompt function (moneromooo-monero)
This commit is contained in:
commit
711625c467
@ -390,6 +390,11 @@ std::unique_ptr<tools::wallet2> make_basic(const boost::program_options::variabl
|
|||||||
{
|
{
|
||||||
auto parsed = tools::login::parse(
|
auto parsed = tools::login::parse(
|
||||||
command_line::get_arg(vm, opts.daemon_login), false, [password_prompter](bool verify) {
|
command_line::get_arg(vm, opts.daemon_login), false, [password_prompter](bool verify) {
|
||||||
|
if (!password_prompter)
|
||||||
|
{
|
||||||
|
MERROR("Password needed without prompt function");
|
||||||
|
return boost::optional<tools::password_container>();
|
||||||
|
}
|
||||||
return password_prompter("Daemon client password", verify);
|
return password_prompter("Daemon client password", verify);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user