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

View File

@ -29,7 +29,13 @@
<div class="card-body"> <div class="card-body">
<h5 class="card-title">Already registered</h5> <h5 class="card-title">Already registered</h5>
<p class="card-text" th:inline="text"> <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> </p>
</div> </div>
</div> </div>

View File

@ -112,7 +112,10 @@ fieldset > legend { font-size : 1.2rem !important; }
<div class="dropdown-menu dropdown-menu-right"> <div class="dropdown-menu dropdown-menu-right">
<p class="px-4 pt-2 text-muted small"> <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>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> </p>
<div class="dropdown-divider"></div> <div class="dropdown-divider"></div>
<a class="dropdown-item" th:href="@{/logout}">Logout</a> <a class="dropdown-item" th:href="@{/logout}">Logout</a>