Skip to content
Snippets Groups Projects
Commit 8733765b authored by Makhtar DIAGNE's avatar Makhtar DIAGNE
Browse files

[TECH] Security / Authentification : Fix token increment

parent 06207afc
No related branches found
No related tags found
1 merge request!1Feature/design/1
......@@ -106,7 +106,7 @@ public class IamAuthentificationService {
// Save token to extend its lifetime but the very old tokens used in development
final LocalDate date = convertToLocalDate(token.getUpdatedDate());
if (date.isAfter(LocalDate.of(2018, 10, 1))) {
token.setUpdatedDate(DateUtils.addMinutes(new Date(), tokenAdditionalTtl));
token.setUpdatedDate(DateUtils.addMinutes(token.getUpdatedDate(), tokenAdditionalTtl));
tokenRepository.save(token);
}
}
......
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