We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e02018 commit 455d035Copy full SHA for 455d035
Auth/LearningHub.Nhs.Auth/Controllers/AccountController.cs
@@ -82,6 +82,12 @@ public AccountController(
82
[HttpGet]
83
public async Task<IActionResult> Login(string returnUrl)
84
{
85
+ returnUrl = null;
86
+ if (string.IsNullOrWhiteSpace(returnUrl))
87
+ {
88
+ throw new Exception("ClientId or origin are empty.");
89
+ }
90
+
91
// Use internal login page
92
// build a model so we know what to show on the login page
93
var vm = await this.BuildLoginViewModelAsync(returnUrl);
0 commit comments