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

Use new method for checking secret storage key
This commit is contained in:
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

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,