Parse TOTP input string before first save

This commit is contained in:
Weslly 2017-05-03 22:00:58 -03:00
parent d3ed14ebb7
commit 3640053415

View File

@ -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();