Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Auth/LearningHub.Nhs.Auth/Controllers/AccountController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ public AccountController(
[HttpGet]
public async Task<IActionResult> 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);
Expand Down
Loading