add key only if OTPEnabled

This commit is contained in:
Brian Moran 2024-09-06 10:26:40 -07:00
parent 4298a000a0
commit f8c31aea3e

View File

@ -11412,13 +11412,13 @@ void MainWindow::sfox_tx() {
otp_key = 0; otp_key = 0;
LOG_INFO(QString("TOTP SF: Incorrect length")); LOG_INFO(QString("TOTP SF: Incorrect length"));
} }
args.append(QString("OTP:%1").arg(otp_key));
} else } else
{ {
showStatusMessage (tr ("TOTP SF: seed not long enough.")); showStatusMessage (tr ("TOTP SF: seed not long enough."));
LOG_INFO(QString("TOTP SF: seed not long enough")); LOG_INFO(QString("TOTP SF: seed not long enough"));
} }
} }
args.append(QString("OTP:%1").arg(otp_key));
#else #else
args.append(m_config.FoxKey()); args.append(m_config.FoxKey());
#endif #endif