mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Show error message when trying to use challenge response without YubiKey
This commit is contained in:
parent
c7defdc06f
commit
c49aa6beef
@ -145,6 +145,13 @@ void ChangeMasterKeyWidget::generateKey()
|
||||
if (m_ui->challengeResponseGroup->isChecked()) {
|
||||
int i = m_ui->comboChallengeResponse->currentIndex();
|
||||
i = m_ui->comboChallengeResponse->itemData(i).toInt();
|
||||
|
||||
if (0 == i) {
|
||||
m_ui->messageWidget->showMessage(tr("Changing master key failed: no YubiKey inserted."),
|
||||
MessageWidget::Error);
|
||||
return;
|
||||
}
|
||||
|
||||
YkChallengeResponseKey key(i);
|
||||
|
||||
m_key.addChallengeResponseKey(key);
|
||||
|
Loading…
Reference in New Issue
Block a user