Commit 7e9d3c10 authored by Sietse Ringers's avatar Sietse Ringers
Browse files

Fix wrong default validity of credentials in issuance

parent a1b9e647
......@@ -60,7 +60,7 @@ func validateIssuanceRequest(request *irma.IssuanceRequest) error {
}
// Ensure the credential has an expiry date
defaultValidity := irma.Timestamp(time.Now().Add(6 * time.Hour))
defaultValidity := irma.Timestamp(time.Now().AddDate(0, 6, 0))
if cred.Validity == nil {
cred.Validity = &defaultValidity
}
......
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