@page "/login" @attribute [AllowAnonymous] @using Microsoft.AspNetCore.Authorization @using Microsoft.AspNetCore.Components Login

Login

@if (!string.IsNullOrWhiteSpace(Error)) { }
@code { [SupplyParameterFromQuery] public string? ReturnUrl { get; set; } [SupplyParameterFromQuery] public string? Error { get; set; } [SupplyParameterFromQuery] public string? Username { get; set; } private string SafeReturnUrl => string.IsNullOrWhiteSpace(ReturnUrl) || !Uri.IsWellFormedUriString(ReturnUrl, UriKind.Relative) ? "/" : ReturnUrl; }