Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
7e9d3c10
Commit
7e9d3c10
authored
Aug 26, 2018
by
Sietse Ringers
Browse files
Fix wrong default validity of credentials in issuance
parent
a1b9e647
Changes
1
Show whitespace changes
Inline
Side-by-side
irmaserver/backend/helpers.go
View file @
7e9d3c10
...
@@ -60,7 +60,7 @@ func validateIssuanceRequest(request *irma.IssuanceRequest) error {
...
@@ -60,7 +60,7 @@ func validateIssuanceRequest(request *irma.IssuanceRequest) error {
}
}
// Ensure the credential has an expiry date
// Ensure the credential has an expiry date
defaultValidity
:=
irma
.
Timestamp
(
time
.
Now
()
.
Add
(
6
*
time
.
Hour
))
defaultValidity
:=
irma
.
Timestamp
(
time
.
Now
()
.
Add
Date
(
0
,
6
,
0
))
if
cred
.
Validity
==
nil
{
if
cred
.
Validity
==
nil
{
cred
.
Validity
=
&
defaultValidity
cred
.
Validity
=
&
defaultValidity
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment