mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Add basic support for WebAuthn (Passkeys) (#8825)
--------- Co-authored-by: varjolintu <sami.vanttinen@protonmail.com> Co-authored-by: droidmonkey <support@dmapps.us>
This commit is contained in:
@@ -64,6 +64,10 @@
|
||||
#include "sshagent/SSHAgent.h"
|
||||
#endif
|
||||
|
||||
#ifdef WITH_XC_BROWSER_PASSKEYS
|
||||
#include "gui/passkeys/PasskeyImporter.h"
|
||||
#endif
|
||||
|
||||
DatabaseWidget::DatabaseWidget(QSharedPointer<Database> db, QWidget* parent)
|
||||
: QStackedWidget(parent)
|
||||
, m_db(std::move(db))
|
||||
@@ -1392,6 +1396,20 @@ void DatabaseWidget::switchToDatabaseSecurity()
|
||||
m_databaseSettingDialog->showDatabaseKeySettings();
|
||||
}
|
||||
|
||||
#ifdef WITH_XC_BROWSER_PASSKEYS
|
||||
void DatabaseWidget::switchToPasskeys()
|
||||
{
|
||||
switchToDatabaseReports();
|
||||
m_reportsDialog->activatePasskeysPage();
|
||||
}
|
||||
|
||||
void DatabaseWidget::switchToImportPasskey()
|
||||
{
|
||||
PasskeyImporter passkeyImporter;
|
||||
passkeyImporter.importPasskey(m_db);
|
||||
}
|
||||
#endif
|
||||
|
||||
void DatabaseWidget::performUnlockDatabase(const QString& password, const QString& keyfile)
|
||||
{
|
||||
if (password.isEmpty() && keyfile.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user