Skip to content

Commit 455d035

Browse files
committed
PR to test error logging in test environment
1 parent 4e02018 commit 455d035

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Auth/LearningHub.Nhs.Auth/Controllers/AccountController.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ public AccountController(
8282
[HttpGet]
8383
public async Task<IActionResult> Login(string returnUrl)
8484
{
85+
returnUrl = null;
86+
if (string.IsNullOrWhiteSpace(returnUrl))
87+
{
88+
throw new Exception("ClientId or origin are empty.");
89+
}
90+
8591
// Use internal login page
8692
// build a model so we know what to show on the login page
8793
var vm = await this.BuildLoginViewModelAsync(returnUrl);

0 commit comments

Comments
 (0)