Add update username

This commit is contained in:
Nikola Petrov
2023-08-28 12:23:02 +02:00
parent 8ebca780cd
commit 5767e9757c
3 changed files with 39 additions and 3 deletions

View File

@@ -16,7 +16,8 @@ enum class Arg
Input, // input password for label
Change, // change main password
Show, // show password for label
Error // error
Error, // error
Username, // update username
};
Arg get_args(int argc, char** argv, char** label);
@@ -27,6 +28,8 @@ LoginInfoPointer arg_generate(Buffer& decrypted_buffer, Buffer& encrypted_buffer
std::optional<LoginInfoPointer> arg_input(Buffer& decrypted_buffer, Buffer& encrypted_buffer, const char* label, Cryptography& crypto);
void arg_username(Buffer& decrypted_buffer, Buffer& encrypted_buffer, const char* label, Cryptography& crypto);
void arg_list(Buffer& decrypted_buffer);
void arg_delete(Buffer& decrypted_buffer, Buffer& encrypted_buffer, const char* label, Cryptography& crypto);