mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-25 15:55:38 -04:00
Show YubiKey message from MainWindow to ensure it's always shown when a challenge is generated
This commit is contained in:
parent
d6c48a5cf1
commit
b10cb1c83c
7 changed files with 17 additions and 32 deletions
|
@ -214,8 +214,6 @@ CompositeKey DatabaseOpenWidget::databaseKey()
|
|||
bool blocking = i & true;
|
||||
int slot = i >> 1;
|
||||
auto key = QSharedPointer<YkChallengeResponseKey>(new YkChallengeResponseKey(slot, blocking));
|
||||
connect(key.data(), SIGNAL(userInteractionRequired()), SLOT(showYubiKeyPopup()));
|
||||
connect(key.data(), SIGNAL(userConfirmed()), SLOT(hideYubiKeyPopup()));
|
||||
masterKey.addChallengeResponseKey(key);
|
||||
}
|
||||
#endif
|
||||
|
@ -266,18 +264,6 @@ void DatabaseOpenWidget::pollYubikey()
|
|||
QtConcurrent::run(YubiKey::instance(), &YubiKey::detect);
|
||||
}
|
||||
|
||||
void DatabaseOpenWidget::showYubiKeyPopup()
|
||||
{
|
||||
m_ui->messageWidget->showMessage(tr("Please touch the button on your YubiKey!"), MessageWidget::Information);
|
||||
KEEPASSXC_MAIN_WINDOW->setEnabled(false);
|
||||
}
|
||||
|
||||
void DatabaseOpenWidget::hideYubiKeyPopup()
|
||||
{
|
||||
m_ui->messageWidget->hideMessage();
|
||||
KEEPASSXC_MAIN_WINDOW->setEnabled(true);
|
||||
}
|
||||
|
||||
void DatabaseOpenWidget::yubikeyDetected(int slot, bool blocking)
|
||||
{
|
||||
YkChallengeResponseKey yk(slot, blocking);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue