LoginDisplay.razor 536 B

123456789101112
  1. <AuthorizeView>
  2. <Authorized>
  3. <a class="navbar-brand" href="Identity/Account/Manage">@context.User.Identity.Name</a>
  4. <form method="post" action="Identity/Account/LogOut">
  5. <button type="submit" class="nav-link btn btn-link">Выход</button>
  6. </form>
  7. </Authorized>
  8. <NotAuthorized>
  9. <a class="navbar-brand" href="Identity/Account/Register">Регистрация</a>
  10. <a class="navbar-brand" href="Identity/Account/Login">Вход</a>
  11. </NotAuthorized>
  12. </AuthorizeView>