Skip to content

Commit

Permalink
Safer way to handle unlock command of cli_wallet bitshares#1171
Browse files Browse the repository at this point in the history
  • Loading branch information
cogutvalera committed Jun 17, 2019
1 parent 230b02b commit b8f8591
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions programs/cli_wallet/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,9 @@ int main( int argc, char** argv )
if( !options.count( "daemon" ) )
{
auto wallet_cli = std::make_shared<fc::rpc::cli>( GRAPHENE_MAX_NESTED_OBJECTS );

wallet_cli->set_regex_secret("\\s*(unlock|set_password)\\s*");

for( auto& name_formatter : wapiptr->get_result_formatters() )
wallet_cli->format_result( name_formatter.first, name_formatter.second );

Expand Down

0 comments on commit b8f8591

Please sign in to comment.