@page "/Users/{baid:int}/AccessCode" @inject HttpClient Client @inject IDialogService DialogService @inject LoginService LoginService @inject NavigationManager NavigationManager @inject TaikoWebUI.Utilities.StringUtil StringUtil; @if (response is not null) { @if ((LoginService.LoginRequired && (!LoginService.IsLoggedIn || (LoginService.GetLoggedInUser().Baid != Baid && !LoginService.IsAdmin))) || User is null) { if (!LoginService.IsLoggedIn) { NavigationManager.NavigateTo("/Login"); } else { NavigationManager.NavigateTo("/"); } } else { Access Codes Add Access Code Add Access Codes @for (var idx = 0; idx < User.AccessCodes.Count; idx++) { var accessCode = User.AccessCodes[idx]; var localIdx = idx + 1;
                                                    @foreach (var digitGroup in StringUtil.SplitIntoGroups(accessCode, 4))
                                                    {
                                                    @digitGroup
                                                    }
                                                
@Localizer["Delete"]
}
} } else { }