processing triggerUnlock sent by the extension

This commit is contained in:
antelle 2021-04-26 22:35:17 +02:00
parent f0bbc54fd5
commit f91cfc0f79
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
1 changed files with 7 additions and 2 deletions

View File

@ -316,9 +316,14 @@ const ProtocolHandlers = {
};
},
'get-databasehash'(request) {
async 'get-databasehash'(request) {
decryptRequest(request);
ensureAtLeastOneFileIsOpen();
if (request.triggerUnlock) {
await checkContentRequestPermissions(request);
} else {
ensureAtLeastOneFileIsOpen();
}
return encryptResponse(request, {
hash: KeeWebHash,