From 5125dfa52be5d6ec3ebc1e3a7dc5a11211080a5d Mon Sep 17 00:00:00 2001 From: James Gunn Date: Thu, 9 Nov 2023 14:44:07 +0000 Subject: [PATCH] Fix filter method so it doesn't call next in the chain (#759) --- .../Pages/Account/DateOfBirth/Confirm.cshtml.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/dotnet-authserver/src/TeacherIdentity.AuthServer/Pages/Account/DateOfBirth/Confirm.cshtml.cs b/dotnet-authserver/src/TeacherIdentity.AuthServer/Pages/Account/DateOfBirth/Confirm.cshtml.cs index 5752fc28f..7bf6cd812 100644 --- a/dotnet-authserver/src/TeacherIdentity.AuthServer/Pages/Account/DateOfBirth/Confirm.cshtml.cs +++ b/dotnet-authserver/src/TeacherIdentity.AuthServer/Pages/Account/DateOfBirth/Confirm.cshtml.cs @@ -83,6 +83,7 @@ public override async Task OnPageHandlerExecutionAsync(PageHandlerExecutingConte if (!await ChangeDateOfBirthEnabled()) { context.Result = BadRequest(); + return; } if (DateOfBirth is null)