interceptor credit user

This commit is contained in:
Parpaillax
2024-04-24 14:05:10 +02:00
parent 62d2de271e
commit cc658b8427
4 changed files with 69 additions and 4 deletions

View File

@@ -13,10 +13,10 @@
<a class="navbar-brand" href="/accueil">
<img src="/img/logo.png" width="70" height="70" alt="Logo">
</a>
<!-- <div th:if="${#authentication.principal != 'anonymousUser'}">-->
<!-- <p>Mes crédits :</p>-->
<!-- <p th:text="${userProfile.credit}"></p>-->
<!-- </div>-->
<div th:if="${#authentication.principal != 'anonymousUser'}">
<p>Mes crédits :</p>
<p th:text="${user}"></p>
</div>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>