Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7d39e561f7 | |||
| 8dfe71ac97 |
+1
-1
@@ -58,7 +58,7 @@ public class PublicInscriptionController {
|
|||||||
|
|
||||||
TokenPreInscription token = new TokenPreInscription();
|
TokenPreInscription token = new TokenPreInscription();
|
||||||
token.setValeurUuid(UUID.randomUUID().toString());
|
token.setValeurUuid(UUID.randomUUID().toString());
|
||||||
token.setDateExpiration(LocalDateTime.now().plusMinutes(10));
|
token.setDateExpiration(LocalDateTime.now().plusMinutes(5));
|
||||||
tokenRepository.save(token);
|
tokenRepository.save(token);
|
||||||
|
|
||||||
return "redirect:/inscription-public/formulaire?token=" + token.getValeurUuid();
|
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">
|
<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>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>
|
||||||
<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>
|
<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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user