mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-15 05:23:13 -04:00
Allows a separate ID key for browser extension association
This commit is contained in:
parent
41ebc10c03
commit
d70a474bac
@ -169,7 +169,9 @@ QJsonObject BrowserAction::handleAssociate(const QJsonObject& json, const QStrin
|
||||
|
||||
QMutexLocker locker(&m_mutex);
|
||||
if (key.compare(m_clientPublicKey, Qt::CaseSensitive) == 0) {
|
||||
const QString id = m_browserService.storeKey(key);
|
||||
// Check for identification key. If it's not found, ensure backwards compatibility and use the current public key
|
||||
const QString idKey = decrypted.value("idKey").toString();
|
||||
const QString id = m_browserService.storeKey((idKey.isEmpty() ? key: idKey));
|
||||
if (id.isEmpty()) {
|
||||
return getErrorReply(action, ERROR_KEEPASS_ACTION_CANCELLED_OR_DENIED);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user