This commit is contained in:
Michele Artini 2020-11-13 10:08:14 +01:00
parent 2fa87bd99f
commit a0c2d66360
2 changed files with 11 additions and 2 deletions

View File

@ -29,7 +29,13 @@
<div class="card-body">
<h5 class="card-title">Already registered</h5>
<p class="card-text" th:inline="text">
Hello '<span sec:authentication="principal.email" id="current_user"></span>', you are already registered as <span sec:authentication="principal.authorities"></span>
Hello <b sec:authentication="principal.email" id="current_user"></b>,<br />
<span sec:authorize="hasRole('ROLE_OPENORGS_ADMIN') or hasRole('ROLE_OPENORGS_NATIONAL_ADMIN') or hasRole('ROLE_OPENORGS_USER')">
You are already registered.
</span>
<span sec:authorize="hasRole('ROLE_OPENORGS_PENDING')">
Your registration need to be approved by an administrator. Please wait.
</span>
</p>
</div>
</div>

View File

@ -112,7 +112,10 @@ fieldset > legend { font-size : 1.2rem !important; }
<div class="dropdown-menu dropdown-menu-right">
<p class="px-4 pt-2 text-muted small">
<b>Logged as:</b><br /><span sec:authentication="principal.email" id="current_user"></span><br />
<b>Role:</b><br /><span sec:authentication="principal.authorities"></span>
<b>Role:</b><br />
<span sec:authorize="hasRole('ROLE_OPENORGS_ADMIN')">Super Admin</span>
<span sec:authorize="hasRole('ROLE_OPENORGS_NATIONAL_ADMIN')">National Admin</span>
<span sec:authorize="hasRole('ROLE_OPENORGS_USER')">Simple User</span>
</p>
<div class="dropdown-divider"></div>
<a class="dropdown-item" th:href="@{/logout}">Logout</a>