@page "/change-password" @attribute [Authorize] @using Microsoft.AspNetCore.Authorization @using Microsoft.AspNetCore.Components @using Microsoft.Extensions.Options @using WorkTracker.Configuration @inject IOptions AppAuthOptions @inject NavigationManager Navigation Change Password @if (!AppAuthOptions.Value.Enabled) {

Redirecting...

} else {

Change password

@if (!string.IsNullOrWhiteSpace(Error)) { }
} @code { [SupplyParameterFromQuery] public string? Error { get; set; } protected override void OnInitialized() { if (!AppAuthOptions.Value.Enabled) { Navigation.NavigateTo("/", forceLoad: true); } } }