Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-jams
Commits
06dfe00d
Commit
06dfe00d
authored
Apr 01, 2022
by
Larbi Gharib
Browse files
fix refresh user certificate if expired
Change-Id: I1336a9d853e91e7d40dc99322ff6fc2f5674175a
parent
a4814c85
Changes
1
Hide whitespace changes
Inline
Side-by-side
jams-server/src/main/java/net/jami/jams/server/core/workflows/RegisterDeviceFlow.java
View file @
06dfe00d
...
...
@@ -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
);
}
...
...
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