Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions src/google-authenticator.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,12 +329,10 @@ static void displayEnrollInfo(const char *secret, const char *label,
// it at build-time we look for it at run-time. If it cannot be found, the
// user can still type the code in manually or copy the URL into
// their browser.
if (isatty(STDOUT_FILENO)) {
if (!displayQRCode(url)) {
printf(
"Failed to use libqrencode to show QR code visually for scanning.\n"
"Consider typing the OTP secret into your app manually.\n");
}
if (!displayQRCode(url)) {
printf(
"Failed to use libqrencode to show QR code visually for scanning.\n"
"Consider typing the OTP secret into your app manually.\n");
}

free((char *)url);
Expand Down