@page "/account/login" @inject NotificationService NotificationService Вход в систему Вход @code { sealed class InputModel { public string UserName { get; set; } = ""; public string Password { get; set; } = ""; } [SupplyParameterFromForm] InputModel Input { get; set; } = new(); [SupplyParameterFromQuery] string? Status { get; set; } [SupplyParameterFromQuery] string? ReturnUrl { get; set; } protected override void OnAfterRender(bool firstRender) { base.OnAfterRender(firstRender); if (firstRender) { if (Status == "failed") { NotificationService.Notify(new NotificationMessage() { Severity = NotificationSeverity.Error, Summary = "Ошибка", Detail = "Неверный логин или пароль", Duration = -1d }); } } } }