mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Passkeys: Position the confirm dialog with the parent window
This commit is contained in:
parent
50eec240b4
commit
dbc7f020fd
@ -595,7 +595,7 @@ QJsonObject BrowserService::showPasskeysRegisterPrompt(const QJsonObject& public
|
||||
const auto existingEntries = getPasskeyEntriesWithUserHandle(rpId, userId, keyList);
|
||||
|
||||
raiseWindow();
|
||||
BrowserPasskeysConfirmationDialog confirmDialog;
|
||||
BrowserPasskeysConfirmationDialog confirmDialog(m_currentDatabaseWidget);
|
||||
confirmDialog.registerCredential(username, rpId, existingEntries, timeout);
|
||||
|
||||
auto dialogResult = confirmDialog.exec();
|
||||
@ -663,7 +663,7 @@ QJsonObject BrowserService::showPasskeysAuthenticationPrompt(const QJsonObject&
|
||||
const auto timeout = publicKeyOptions["timeout"].toInt();
|
||||
|
||||
raiseWindow();
|
||||
BrowserPasskeysConfirmationDialog confirmDialog;
|
||||
BrowserPasskeysConfirmationDialog confirmDialog(m_currentDatabaseWidget);
|
||||
confirmDialog.authenticateCredential(entries, rpId, timeout);
|
||||
auto dialogResult = confirmDialog.exec();
|
||||
if (dialogResult == QDialog::Accepted) {
|
||||
|
Loading…
Reference in New Issue
Block a user