Skip to content
Snippets Groups Projects
Commit 06dfe00d authored by Larbi Gharib's avatar Larbi Gharib
Browse files

fix refresh user certificate if expired

Change-Id: I1336a9d853e91e7d40dc99322ff6fc2f5674175a
parent a4814c85
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,7 @@ public class RegisterDeviceFlow {
}
// Renew user certificate if expired with same private key
if(user.getCertificate().getNotAfter().after(new Date())) {
if(!user.getCertificate().getNotAfter().after(new Date())) {
user = UserAuthenticationModule.certificateAuthority.getRefreshedCertificate(user);
datastore.updateUserCertificate(user);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment