Add QR code generator for TOTP export (#1167)
* Resolves #764 * Add libqrencode and qtsvg dependencies * Ensure QR code remains square * Auto-close QR code dialog when database is locked * Add databaseLocked() Signal to databaseWidget * Correct otpauth URI output in Totp::writeSettings(...)
This commit is contained in:
committed by
Jonathan White
parent
80749958b7
commit
bb16dc6d01
@@ -369,7 +369,7 @@ void Entry::setTotp(QSharedPointer<Totp::Settings> settings)
|
||||
beginUpdate();
|
||||
m_data.totpSettings = settings;
|
||||
|
||||
auto text = Totp::writeSettings(m_data.totpSettings);
|
||||
auto text = Totp::writeSettings(m_data.totpSettings, title(), username());
|
||||
if (m_attributes->hasKey(Totp::ATTRIBUTE_OTP)) {
|
||||
m_attributes->set(Totp::ATTRIBUTE_OTP, text, true);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user