From 3640053415f6a749f10bfbdd86ce2962653520d0 Mon Sep 17 00:00:00 2001 From: Weslly Date: Wed, 3 May 2017 22:00:58 -0300 Subject: [PATCH] Parse TOTP input string before first save --- src/gui/SetupTotpDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/SetupTotpDialog.cpp b/src/gui/SetupTotpDialog.cpp index 43a042df9..b088e8217 100644 --- a/src/gui/SetupTotpDialog.cpp +++ b/src/gui/SetupTotpDialog.cpp @@ -49,7 +49,7 @@ void SetupTotpDialog::setupTotp() } quint8 step = m_ui->stepSpinBox->value(); - QString seed = m_ui->seedEdit->text(); + QString seed = QTotp::parseOtpString(m_ui->seedEdit->text(), digits, step); m_entry->setTotp(seed, step, digits); emit m_parent->entrySelectionChanged(); close();