Commit d45627be authored by Sietse Ringers's avatar Sietse Ringers
Browse files

Exclude expire attributes as disclosure candidates

parent 65567254
......@@ -445,6 +445,9 @@ func (client *Client) Candidates(disjunction *irma.AttributeDisjunction) []*irma
continue
}
for _, attrs := range creds {
if !attrs.IsValid() {
continue
}
id := &irma.AttributeIdentifier{Type: attribute, CredentialHash: attrs.Hash()}
if attribute.IsCredential() {
candidates = append(candidates, id)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment