diff --git a/Auth/LearningHub.Nhs.Auth/Views/Account/LHLogin.cshtml b/Auth/LearningHub.Nhs.Auth/Views/Account/LHLogin.cshtml index 3aae2e5..3d8a453 100644 --- a/Auth/LearningHub.Nhs.Auth/Views/Account/LHLogin.cshtml +++ b/Auth/LearningHub.Nhs.Auth/Views/Account/LHLogin.cshtml @@ -2,6 +2,7 @@ @{ ViewData["Title"] = "Login"; ViewData["Layout"] = "learninghub/_Layout"; + ViewData["DisableValidation"] = true; // OpenAthens url needs to makes sure that the return to WebUI first hits the authorisationrequired endpoint, // which contains it's own redirect to within the UI. // If a return url is specified we want to use it for the authorisationrequired original url diff --git a/Auth/LearningHub.Nhs.Auth/Views/Shared/_ValidationScriptsPartial.cshtml b/Auth/LearningHub.Nhs.Auth/Views/Shared/_ValidationScriptsPartial.cshtml index b371ca5..d5f33c5 100644 --- a/Auth/LearningHub.Nhs.Auth/Views/Shared/_ValidationScriptsPartial.cshtml +++ b/Auth/LearningHub.Nhs.Auth/Views/Shared/_ValidationScriptsPartial.cshtml @@ -1,8 +1,10 @@ - - - - - +@if (!ViewData["DisableValidation"]?.Equals(true) ?? true) +{ + + + + + - + +}