From 8eca96089b9f1eaed085c9949bc8ebdbc2877395 Mon Sep 17 00:00:00 2001 From: Swapnamol Abraham Date: Mon, 17 Mar 2025 09:57:39 +0000 Subject: [PATCH] Reverted the test code --- Auth/LearningHub.Nhs.Auth/Controllers/AccountController.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Auth/LearningHub.Nhs.Auth/Controllers/AccountController.cs b/Auth/LearningHub.Nhs.Auth/Controllers/AccountController.cs index ecb36c0..ff7b352 100644 --- a/Auth/LearningHub.Nhs.Auth/Controllers/AccountController.cs +++ b/Auth/LearningHub.Nhs.Auth/Controllers/AccountController.cs @@ -82,12 +82,6 @@ public AccountController( [HttpGet] public async Task Login(string returnUrl) { - returnUrl = null; - if (string.IsNullOrWhiteSpace(returnUrl)) - { - throw new Exception("ClientId or origin are empty."); - } - // Use internal login page // build a model so we know what to show on the login page var vm = await this.BuildLoginViewModelAsync(returnUrl);