|
Monero
|
#include <password.h>

Public Member Functions | |
| login ()=default | |
| login (const login &)=delete | |
| login (login &&)=default | |
| ~login ()=default | |
| login & | operator= (const login &)=delete |
| login & | operator= (login &&)=default |
Static Public Member Functions | |
| static boost::optional< login > | parse (std::string &&userpass, bool verify, const std::function< boost::optional< password_container >(bool)> &prompt) |
Public Attributes | |
| std::string | username |
| password_container | password |
|
default |
|
delete |
|
default |
|
default |
|
static |
Extracts username and password from the format username:password. A blank username or password is allowed. If the : character is not present, password_container::prompt will be called by forwarding the verify and message arguments.
| userpass | Is "consumed", and the memory contents are wiped. |
| verify | is passed to password_container::prompt if necessary. |
| message | is passed to password_container::prompt if necessary. |
| password_container tools::login::password |
| std::string tools::login::username |