Leo/Backend #82

Merged
Maxime merged 11 commits from Leo/Backend into master 2024-03-11 19:16:20 +01:00
2 changed files with 0 additions and 4 deletions
Showing only changes of commit dcf5b26b05 - Show all commits

View File

@ -53,9 +53,6 @@ public class MockController {
userRepo.saveAll(mockUsers); userRepo.saveAll(mockUsers);
Calendar c = Calendar.getInstance();
c.setTime(new Date());
for (User user: mockUsers){ for (User user: mockUsers){
tokenService.saveToken(new Token(user,user.getPassword(), new Date())); tokenService.saveToken(new Token(user,user.getPassword(), new Date()));
} }

View File

@ -51,7 +51,6 @@ public class TokenService {
//Tous les jours a minuit //Tous les jours a minuit
@Scheduled(cron = "0 0 0 * * ?") @Scheduled(cron = "0 0 0 * * ?")
public void autoDeleteToken() { public void autoDeleteToken() {
System.out.println("triggered");
for (Token t: tokenRepo.findAll()){ for (Token t: tokenRepo.findAll()){
Calendar cal = Calendar.getInstance(); Calendar cal = Calendar.getInstance();