-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Passkeys: Add warning on export (#10411)
- Loading branch information
1 parent
d5e6f39
commit e707770
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (C) 2023 KeePassXC Team <[email protected]> | ||
* Copyright (C) 2024 KeePassXC Team <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -24,6 +24,7 @@ | |
#include "core/Metadata.h" | ||
#include "gui/GuiTools.h" | ||
#include "gui/Icons.h" | ||
#include "gui/MessageBox.h" | ||
#include "gui/passkeys/PasskeyExporter.h" | ||
#include "gui/passkeys/PasskeyImporter.h" | ||
#include "gui/styles/StateColorPalette.h" | ||
|
@@ -289,6 +290,16 @@ void ReportsWidgetPasskeys::importPasskey() | |
|
||
void ReportsWidgetPasskeys::exportPasskey() | ||
{ | ||
auto answer = MessageBox::question(this, | ||
tr("Export Confirmation"), | ||
tr("The passkey file will be vulnerable to theft and unauthorized use, if left " | ||
"unsecured. Are you sure you want to continue?"), | ||
MessageBox::Yes | MessageBox::No, | ||
MessageBox::No); | ||
if (answer != MessageBox::Yes) { | ||
return; | ||
} | ||
|
||
PasskeyExporter passkeyExporter; | ||
passkeyExporter.showExportDialog(getSelectedEntries()); | ||
} |