Rename get_passwd to get_user_password
This commit is contained in:
parent
57af63a71c
commit
92743427c5
@ -1,4 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
bool put_data_on_clipboard(const char* text);
|
bool put_data_on_clipboard(const char* text);
|
||||||
std::string get_passwd();
|
std::string get_user_password();
|
@ -88,7 +88,7 @@ int main(int argc, char** argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
printf_s("Input main password:");
|
printf_s("Input main password:");
|
||||||
std::string user_pass = get_passwd();
|
std::string user_pass = get_user_password();
|
||||||
if (user_pass.empty())
|
if (user_pass.empty())
|
||||||
{
|
{
|
||||||
printf_s("Error getting password\n");
|
printf_s("Error getting password\n");
|
||||||
|
@ -40,7 +40,7 @@ bool put_data_on_clipboard(const char* text) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
std::string get_passwd()
|
std::string get_user_password()
|
||||||
{
|
{
|
||||||
|
|
||||||
HANDLE hStdInput = GetStdHandle(STD_INPUT_HANDLE);
|
HANDLE hStdInput = GetStdHandle(STD_INPUT_HANDLE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user