Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for verifying User Attributes in verifyAllUsers #1637

Merged
16 changes: 9 additions & 7 deletions src/key/key.js
Original file line number Diff line number Diff line change
Expand Up @@ -690,13 +690,15 @@ class Key {
await user.verifyAllCertifications(verificationKeys, date, config) :
[{ keyID: primaryKey.getKeyID(), valid: await user.verify(date, config).catch(() => false) }];

results.push(...signatures.map(
signature => ({
userID: user.userID.userID,
keyID: signature.keyID,
valid: signature.valid
}))
);
if (user.userID !== null && user.userID.userID !== null) {
martgil marked this conversation as resolved.
Show resolved Hide resolved
results.push(
...signatures.map((signature) => ({
userID: user.userID.userID,
twiss marked this conversation as resolved.
Show resolved Hide resolved
keyID: signature.keyID,
valid: signature.valid,
}))
);
}
}));
return results;
}
Expand Down