Merge pull request #4309 from matrix-org/uhoreg/check_sssss_passphrase

Use new method for checking secret storage key
pull/21833/head
Hubert Chathi 2020-04-01 16:02:06 -04:00 committed by GitHub
commit 8680e50dd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -96,11 +96,8 @@ async function getSecretStorageKey({ keys: keyInfos }, ssssItemName) {
{
keyInfo: info,
checkPrivateKey: async (input) => {
if (!info.pubkey) {
return true;
}
const key = await inputToKey(input);
return MatrixClientPeg.get().checkSecretStoragePrivateKey(key, info.pubkey);
return await MatrixClientPeg.get().checkSecretStorageKey(key, info);
},
},
/* className= */ null,