hide token generation button for non-logged-in users
This commit is contained in:
parent
8ae6561f4e
commit
a4923d03f9
@ -140,12 +140,13 @@
|
|||||||
<span class="name">@ViewBag.Localization["WEBFRONT_ACTION_RECENT_CLIENTS"]</span>
|
<span class="name">@ViewBag.Localization["WEBFRONT_ACTION_RECENT_CLIENTS"]</span>
|
||||||
</a>
|
</a>
|
||||||
</has-permission>
|
</has-permission>
|
||||||
<a class="sidebar-link profile-action" href="#actionModal" data-action="GenerateLoginToken" data-response-duration="30000" title="@ViewBag.Localization["WEBFRONT_ACTION_TOKEN"]">
|
|
||||||
<i class="oi oi-key mr-5"></i>
|
|
||||||
<span class="name">@ViewBag.Localization["WEBFRONT_ACTION_TOKEN"]</span>
|
|
||||||
</a>
|
|
||||||
@if (ViewBag.Authorized)
|
@if (ViewBag.Authorized)
|
||||||
{
|
{
|
||||||
|
<a class="sidebar-link profile-action" href="#actionModal" data-action="GenerateLoginToken" data-response-duration="30000" title="@ViewBag.Localization["WEBFRONT_ACTION_TOKEN"]">
|
||||||
|
<i class="oi oi-key mr-5"></i>
|
||||||
|
<span class="name">@ViewBag.Localization["WEBFRONT_ACTION_TOKEN"]</span>
|
||||||
|
</a>
|
||||||
<a asp-controller="Account" asp-action="Logout" class="sidebar-link">
|
<a asp-controller="Account" asp-action="Logout" class="sidebar-link">
|
||||||
<i class="oi oi-account-logout mr-5"></i>
|
<i class="oi oi-account-logout mr-5"></i>
|
||||||
<span class="name">@ViewBag.Localization["WEBFRONT_NAV_LOGOUT"]</span>
|
<span class="name">@ViewBag.Localization["WEBFRONT_NAV_LOGOUT"]</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user