Compare commits

..

2 Commits

Author SHA1 Message Date
ucef 7d39e561f7 security: decrease pre-registration token expiration from 10 to 5 minutes
AS Talange CI/CD Pipeline / Build & Run Unit Tests (push) Successful in 2m58s
AS Talange CI/CD Pipeline / Build & Run in Docker Container (push) Successful in 3m26s
2026-06-13 00:00:42 +02:00
ucef 8dfe71ac97 fix: load admin pre-registrations badge immediately on page load 2026-06-12 23:59:12 +02:00
2 changed files with 2 additions and 2 deletions
@@ -58,7 +58,7 @@ public class PublicInscriptionController {
TokenPreInscription token = new TokenPreInscription();
token.setValeurUuid(UUID.randomUUID().toString());
token.setDateExpiration(LocalDateTime.now().plusMinutes(10));
token.setDateExpiration(LocalDateTime.now().plusMinutes(5));
tokenRepository.save(token);
return "redirect:/inscription-public/formulaire?token=" + token.getValeurUuid();
@@ -14,7 +14,7 @@
<a sec:authorize="hasAnyRole('ROLE_ADMIN', 'ROLE_AGENT_SAISIE')" href="/admin/pre-inscriptions" th:classappend="${requestURI != null and requestURI.startsWith('/admin/pre-inscriptions') ? 'bg-blue-50 text-blue-700 font-medium' : 'text-gray-600 hover:bg-gray-50 hover:text-gray-900'}" class="flex items-center px-3 py-2 rounded-lg transition-colors">
<span>Pré-inscriptions</span>
<span hx-get="/admin/pre-inscriptions/count" hx-trigger="every 30s, refreshBadge from:body" hx-swap="outerHTML"></span>
<span hx-get="/admin/pre-inscriptions/count" hx-trigger="load, every 30s, refreshBadge from:body" hx-swap="outerHTML"></span>
</a>
<a sec:authorize="hasAnyRole('ROLE_ADMIN', 'ROLE_TRESORERIE')" href="/paiements" th:classappend="${requestURI != null and requestURI.startsWith('/paiements') ? 'bg-blue-50 text-blue-700 font-medium' : 'text-gray-600 hover:bg-gray-50 hover:text-gray-900'}" class="block px-3 py-2 rounded-lg transition-colors">Paiements</a>