We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e24a53 commit dc28bfbCopy full SHA for dc28bfb
1 file changed
x64/main.cpp
@@ -85,7 +85,11 @@ int main()
85
std::cout << skCrypt("\n Enter password: ");
86
std::cin >> password;
87
std::cout << skCrypt("\n Enter 2fa code if applicable: ");
88
- std::cin >> TfaCode;
+ std::cin.ignore(); // Ignore the newline character left by the previous input
89
+ std::getline(std::cin, TfaCode); // Allow empty input for 2FA code
90
+ if (TfaCode.empty()) {
91
+ std::cout << skCrypt("\n No 2fa code entered, continuing without it\n");
92
+ }
93
KeyAuthApp.login(username, password, TfaCode);
94
break;
95
case 2:
0 commit comments