@page "/register" @using TaskTrackingSystem.WebApp.Components.Partial @layout Layout.EmptyLayout @rendermode @(new InteractiveServerRenderMode(prerender: false)) @attribute [Microsoft.AspNetCore.Authorization.AllowAnonymous] @inject IJSRuntime JS @AppLocalization.Text("auth.registerTitle", "Register - Taskify")

@AppLocalization.Text("auth.registerAccountTitle", "Create your Taskify account")

@AppLocalization.Text("auth.alreadyHaveAccess", "Already have access?") @AppLocalization.Text("common.signIn", "Sign in")

@if (!string.IsNullOrEmpty(Error)) {

@ErrorMessage

}
@code { [SupplyParameterFromQuery(Name = "error")] private string? Error { get; set; } private string ErrorMessage => AppLocalization.ErrorMessage(Error, ResultMessages.RegistrationFailed); private bool showPassword = false; private async Task TogglePassword() { showPassword = !showPassword; await JS.InvokeVoidAsync("initIcons"); } protected override async Task OnAfterRenderAsync(bool firstRender) { await JS.InvokeVoidAsync("initIcons"); } }