@page "/user-management"
@attribute [Authorize(Roles = "Administrator")]
@inject IAuthService AuthService
@inject IEmailService EmailService
@inject ILocalizationService Loc
@inject NavigationManager Navigation
@rendermode InteractiveServer
| Name | Rolle | Status | Aktionen | |
|---|---|---|---|---|
| @u.Name @(u.Id == currentUserId ? "(Du)" : "") | @(!string.IsNullOrEmpty(u.Email) ? u.Email : "—") | @string.Join(", ", u.Roles.Select(RoleName)) | @if (u.IsActive) { Aktiv } else { Inaktiv } | @if (!string.IsNullOrEmpty(u.Email) && EmailService.IsConfigured) { } @if (u.Id != currentUserId) { @if (u.IsActive) { } else { } } |